Magento2 Image Optimizer
Based on Spatie Image Optimizer., (*1)
This package adds 2 new Image Adapters to Magento2 in Store -> Configuration -> Advanced -> Developer -> Image Processing: - GD2 + Optimizer - ImageMagick + Optimizer, (*2)
By using either of those instead of the default, the images will be automatically optimized., (*3)
Note: This is an alpha package, use with caution., (*4)
You can install this module via composer:, (*5)
composer require fruitcake/magento2-image-optimizer:"0.1.x@dev"
Enable the module (and reset cache/di etc), (*6)
php bin/magento module:enable Fruitcake_ImageOptimizer
You can now select and Image Adapter that includes the Optimizer., (*7)
Before images can be optimized, you will need to install the Optimizers as described in https://github.com/spatie/image-optimizer#optimization-tools, (*8)
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, (*9)
php bin/magento catalog:images:resize
If you discover any security related issues, please email barry@fruitcake.nl directly., (*10)
The MIT License (MIT). Please see License File for more information., (*11)