定制 spacecatninja/imager-x-kraken-optimizer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

spacecatninja/imager-x-kraken-optimizer

最新稳定版本:1.0.2

Composer 安装命令:

composer require spacecatninja/imager-x-kraken-optimizer

包简介

Kraken optimizer for Imager X

README 文档

README

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.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-06