dev-master
9999999-devUse the kraken API to optimize images
BSD-3-Clause
The Requires
by Ryan McLaren
silverstripe images optimize kraken
Use the kraken API to optimize images
composer require rsmclaren/silverstripe-kraken
Run dev/build?flush=all, (*1)
Sign up for the Kraken API and obtain your unique API Key and API Secret, (*2)
Enter your API Key and API Secret in the Settings > Kraken Tab fields, (*3)
After setting up your API keys, images will be automatically optimized using the Kraken API. You will likely notice that Uploading Images is slower after activating the module., (*4)
Existing images can be optimized using the Optimize Images button located in the Files section of the CMS. Individual images can also be optimized by viewing their details page and clicking the Optimize button., (*5)
You can enable the Kraken API Sandbox by using the following in your config.yml., (*6)
Kraken: dev: true
You can read more about the API Sandbox at https://kraken.io/docs/sandbox., (*7)
If you are using a version of SilverStripe <= 3.1.5 you must set the Image backend through your _config.php, (*8)
Image::set_backend('KrakenGDBackend'); //for GD Image::set_backend('KrakenImagickBackend'); // for ImageMagick
Please note that images optimized using this module are replaced. A backup of the original, unoptimized image will not be saved. Please consider creating a backup of your assets folder before using this module., (*9)
Use the kraken API to optimize images
BSD-3-Clause
silverstripe images optimize kraken