Magento 2 Automatic Thumbnail Generator
Automatic Thumbnail Generator is a command line (CLI) extension for Magento 2.x to automatically generate product thumbnails in all sizes including the custom thumbnail sizes defined by 3rd party extensions installed. Normally, thumbnails for a product will be generated only when the product is browsed by atleast one user from the frontend. This could result in broken images when the shop is using CDN for image delivery/distribution. This will become a critical issue if your Magento 2 store runs on a multi-instance environment with the backend on a separate instance and the frontend on multiple instances. In this case, when a new product is added or updated, it is not guaranteed that all the frontend instances will get them when the end user browses it. This may result in the end user seeing broken images.
With the help of this extension, the thumbnails for all the products can be populated with a single command. Since this is a command line based extension, you can also decide to run it in a CRON job ultimately ensuring that all the thumbnail images are up-to-date with the product images. This will help you prevent any “Image not found” incidents with your shop, expecially when new products or product images are uploaded via the admin.
This extension will go through all the Magento modules that have their own custom thumbnail sizes and automatically generate thumbnails for each size for all the products. Built-in Magento classes are used to generate these images which ensures that they will be generated in the correct format and will be stored in the correct path.
- CLI extension, which can be scheduled with the help of CRON job.
- Uses built-in Magento classes to generate thumbnail images, which ensures that the images generated are in the correct format and locations.
- Will create thumbnail images of all sizes including the custom sizes defined by installed 3rd party extensions.
- Prevents "Image not found" incidents when new products or product images are uploaded via the admin.
- Especially useful when the Magento 2 store runs on a multi-instance environment.
After the installation of the extension, you will see "schogini:generate-thumbnail" command in you list of Magento backend commands. Just execute this command and it will generate thumbnail images of all sizes for all your product images.
Please note that more the number of product images, the more time it will take for the module to complete the thumbnail generation.
|Demo Store Code||No|
|Compatible Versions||2.0.x, 2.1.x|