Automatically optimize images in Magento using Gumlet CDN.
- Seamless integration with Gumlet CDN for optimized image delivery
- Works with product images, CMS, email, and widget images
- Uses theme configuration for width detection
composer require gumlet/magento-image-optimization
Enable and activate the module in your Magento installation:
bin/magento module:enable Gumlet_Image
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
- Copy the
Image
folder toapp/code/Gumlet/
in your Magento installation. - Run:
bin/magento setup:upgrade bin/magento cache:flush
No manual configuration required. All product and media images will automatically be optimized using Gumlet CDN.
- Width is determined from the theme's
view.xml
or block context. - No admin configuration required.
- Magento 2.3 and above
To deliver all Magento media assets (images, etc.) via Gumlet, update your secure base media URL:
- Login to Magento Admin
- Go to Stores > Configuration > General > Web
- Expand the Base URLs (Secure) section
- Find Base URL for User Media Files
- Change the value from:
to your Gumlet media URL, e.g.:
{{secure_base_url}}media/
https://your-gumlet-domain.gumlet.io/media/
- Click Save Config
- Flush cache:
bin/magento cache:flush
Note:
- This will route all media requests through Gumlet. Make sure your Gumlet origin is set to your Magento media directory.
- If you want to revert, simply change the value back to
{{secure_base_url}}media/
.
For issues, please open an issue on the repository or contact Gumlet support.
MIT