Magento2 Image Optimizer

Installs: 1 648

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 3

Forks: 2

Open Issues: 1


dev-master / 0.1.x-dev 2017-09-14 20:33 UTC

This package is auto-updated.

Last update: 2023-03-05 16:12:59 UTC


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.


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


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


  • Process WYSIWYG images
  • Command to re-generate existing images or process directories


If you discover any security related issues, please email directly.


The MIT License (MIT). Please see License File for more information.