Skip to content

spacecatninja/craft-imager-x-kraken-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kraken Optimizer for Imager X

An optimizer plugin for Imager X that compresses images using the Kraken.io API.

Requirements

  • Craft CMS 5.0.0 or later
  • Imager X 6.0.0 or later

Installation

composer require spacecatninja/imager-x-kraken-optimizer
php craft plugin/install imager-x-kraken-optimizer

Configuration

Add kraken to the optimizers array and configure it in optimizerConfig in your config/imager-x.php:

'optimizers' => ['kraken'],
'optimizerConfig' => [
    'kraken' => [
        'extensions' => ['png', 'jpg'],
        'apiKey' => '$KRAKEN_API_KEY',
        'apiSecret' => '$KRAKEN_API_SECRET',
        'additionalParams' => [],
    ],
],

Configuration options

Option Description
extensions File extensions to optimize.
apiKey Your Kraken.io API key. Supports environment variables (e.g. $KRAKEN_API_KEY).
apiSecret Your Kraken.io API secret. Supports environment variables (e.g. $KRAKEN_API_SECRET).
additionalParams Additional parameters merged into the Kraken upload request. See the Kraken.io docs for available options.

Price, license and support

The plugin is released under the MIT license. It requires Imager X, which is a commercial plugin available in the Craft plugin store. If you need help or found a bug, please post an issue in this repo or in the Imager X repo.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages