https://github.com/runelaenen/sw6-media-optimizer
Image Optimizer for Shopware 6 💙
https://github.com/runelaenen/sw6-media-optimizer
shopware shopware-platform-plugin shopware-plugin shopware-plugins shopware6 shopware6-plugin
Last synced: 7 months ago
JSON representation
Image Optimizer for Shopware 6 💙
- Host: GitHub
- URL: https://github.com/runelaenen/sw6-media-optimizer
- Owner: runelaenen
- License: mit
- Created: 2020-12-17T16:37:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T08:35:00.000Z (about 2 years ago)
- Last Synced: 2025-02-12T11:58:28.268Z (over 1 year ago)
- Topics: shopware, shopware-platform-plugin, shopware-plugin, shopware-plugins, shopware6, shopware6-plugin
- Language: PHP
- Homepage:
- Size: 117 KB
- Stars: 29
- Watchers: 5
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-shopware6 - Image optimizer 6.x
README
# Image Optimizer for Shopware 6
[](//packagist.org/packages/runelaenen/sw6-media-optimizer)
[](https://github.com/runelaenen/sw6-media-optimizer/releases/latest)
[](//packagist.org/packages/runelaenen/sw6-media-optimizer)
[](https://github.com/runelaenen/sw6-media-optimizer/issues)
[](https://github.com/runelaenen/sw6-media-optimizer/stargazers)
[](//packagist.org/packages/runelaenen/sw6-media-optimizer)

Optimize image files using [spatie/image-optimizer](https://packagist.org/packages/spatie/image-optimizer). This package can optimize PNGs, JPGs, SVGs and GIFs by running them through a chain of various [image optimization tools](#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.
### Optimization tools
The package will use these optimizers if they are present on your system:
- [JpegOptim](http://freecode.com/projects/jpegoptim)
- [Optipng](http://optipng.sourceforge.net/)
- [Pngquant 2](https://pngquant.org/)
- [SVGO](https://github.com/svg/svgo)
- [Gifsicle](http://www.lcdf.org/gifsicle/)
- [cwebp](https://developers.google.com/speed/webp/docs/precompiled)
Please take a look at [the README of spatie/image-optimizer](https://packagist.org/packages/spatie/image-optimizer) to find out how to install these optimizers on your system.
## How to install
### Composer install (recommended)
```
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.
#### Plugin update (composer)
```
composer update runelaenen/sw6-media-optimizer
bin/console plugin:update RuneLaenenMediaOptimizer
```
### .zip install
1. Download the latest RuneLaenenMediaOptimizer.zip from the [latest release](https://github.com/runelaenen/sw6-media-optimizer/releases/latest).
2. Upload the zip in the Shopware Administration
3. Install & Activate the plugin
#### Plugin update (zip)
1. Download the latest RuneLaenenMediaOptimizer.zip from the [latest release](https://github.com/runelaenen/sw6-media-optimizer/releases/latest).
2. Upload the zip in the Shopware Administration
3. Update the plugin