dev-master
9999999-dev
MIT
The Requires
by Josh Cronin
1.4
1.4.0.0
MIT
The Requires
by Josh Cronin
1.3
1.3.0.0
MIT
The Requires
by Josh Cronin
Automatically optimise images that are uploaded to the SilverStripe CMS, (*1)
Installation can be done either by composer or by manually downloading a release., (*2)
$ composer require joshcronin/silverstripe-optimisedimages
, (*3)
/dev/build
on your site.The plugin extends to the onAfterUpload
method of the Image
object. Whenever an Image
object is uploaded it will optimise the image using the options defined in app.yaml
., (*4)
There are three keys in the config that are used regardless of the optimisation provider. These are Use
, SaveOriginal
and OriginalDir
., (*5)
Use accepts two values Kraken
or TinyPNG
. The value is used to decide which service to use to optimise the images., (*6)
SaveOrginal accepts a boolean, if true it will keep the original image - unoptimised - at the directory specified in the OriginalDir
key., (*7)
OriginalDir accepts a string representing the path to the directory that the original images should be saved to. This is only used if SaveOriginal
is set to true
., (*8)
MIT
MIT
MIT