fruitcake/magento2-image-optimizer
Composer 安装命令:
composer require fruitcake/magento2-image-optimizer
包简介
Magento2 Image Optimizer
README 文档
README
Based on Spatie Image Optimizer.
This package adds 2 new Image Adapters to Magento2 in Store -> Configuration -> Advanced -> Developer -> Image Processing:
- GD2 + Optimizer
- ImageMagick + Optimizer
By using either of those instead of the default, the images will be automatically optimized.
Note: This is an alpha package, use with caution.
Installation
You can install this module via composer:
composer require fruitcake/magento2-image-optimizer:"0.1.x@dev"
Enable the module (and reset cache/di etc)
php bin/magento module:enable Fruitcake_ImageOptimizer
You can now select and Image Adapter that includes the Optimizer.
Before images can be optimized, you will need to install the Optimizers as described in https://github.com/spatie/image-optimizer#optimization-tools
Usage
When you upload new images, they will be processed using the Adapter. If you want to make any changes, you can delete your cache and re-generate the thumbnails
php bin/magento catalog:images:resize
Todo
- Process WYSIWYG images
- Command to re-generate existing images or process directories
Security
If you discover any security related issues, please email barry@fruitcake.nl directly.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 2.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-14