Optimize image files using spatie/image-optimizer. This package can optimize PNGs, JPGs, SVGs and GIFs by running them through a chain of various image optimization tools. This Shopware plugin uses it's power to optimize the original files uploaded to your Shopware webshop. It doesn't touch any generated (thumbnail) files and thus will not have a lot of impact on the frontend of your website.
The package will use these optimizers if they are present on your system:
Please take a look at the README of spatie/image-optimizer to find out how to install these optimizers on your system.
composer require runelaenen/sw6-media-optimizer
bin/console plugin:refresh
bin/console plugin:install --activate RuneLaenenMediaOptimizer
You can now run the optimizer
bin/console rl:media:optimize
Tip: use the --info
option to show all enabled optimizers.
composer update runelaenen/sw6-media-optimizer
bin/console plugin:update RuneLaenenMediaOptimizer
- Download the latest RuneLaenenMediaOptimizer.zip from the latest release.
- Upload the zip in the Shopware Administration
- Install & Activate the plugin
- Download the latest RuneLaenenMediaOptimizer.zip from the latest release.
- Upload the zip in the Shopware Administration
- Update the plugin