The extension provides Photoshop-level quality of category and product images after optimization and compression. It is capable of removing unused images stored in media.
OverviewBack to top
The extension we present enables shop owners to maintain the best quality of resized thumbnails, optimize the size of images for search engines, and clean the folder used to store media files. You don't want to keep files you can't even use stored on your server and occupy space storage with useless data. Apart from that, images that are not optimized, i.e. contain unnecessary meta data and are not properly resized, are going to hurt your ranks on the Internet.
In regard to images, Magento 1 comes with several issues:
- Resized thumbnails are of middling quality because of an outdated PHP's GD2 library.
- Search engines are fed images size of which is not optimal because of the inclusion of meta-data and usage of an outdated compression algorithm.
- Product and category images tend to inflate 'media' because need-no-more images are not automatically deleted and literally take up gigabytes of space storage.
PHP ImageMagick mod is capable of addressing the first and second problems by replacing the GD2 engine used for resizing of images. Speaking of tons of forgotten images buried within the media folder, we have to say things get complicated. If you've run a shop for a long time, you may definitely expect the media to be littered. Having investigated the issue, we found out the given folder serves as an archive of any sorts of images that were uploaded into Magento. A so-called unintentional museum. By removing a category/product with images stored in it, one may expect to say goodbye to the former and the latter. You wish! Magento prefers to remove respective DB records and, surprisingly, leave physical files on the server. This appears to be one of the major causes for performance issues due to high load of the file system.
The optimization provided by the extension is only possible with the help of the ImageMagick which needs to be set up on your server. Whether it is installed or not, one can see with 'phpinfo();'. If you're not sure you understand what it is all about, just get in touch with your system administrator. A root access is required for the installation of the mod. When done with installing the aforementioned PHP mod you can enable the extension on the configuation page and get it ready for an optimization procedure.
A nice hint to be aware of, when an admin user saves the configuration page 'Flush Catalog Images Cache' takes place which lets the extension to automatically optimize each and every resized thumbnail while maintaining their best quality level.
Cleaning the media folder
Running the cleaning from time to time, or automatically by schedule, guarantees that 'media' includes only image files that are really used by Magento. An admin user can configure the schedule for the module to check and clean the folder on a weekly or monthly basis. There are different resources available for cleaning to select from. Along with it, a button for manual cleaning is available in the configuration section. You can always check cleaning logs in /var/log/cleaned_images.log. Though the very first run of the cleaning command may result in the log file including thousands of records about removed image files. This depends on the resources for cleaning available for selection.
- Images that do not belong to any product
- Images that do not belong to any category
- DB record related to product's missing image
- DB record related to category's missing image
Let the extension to do the job by enabling the schedu le that relies on the cron. Should you notice lengthy system lags if the cron job is set, try setting a lower value for One-Time Limit that is responsible for the number of records to process.
- Guarantees Photoshop-like quality of resized thumbnails in Magento
- Provides best possible optimization of the image's size for search engines
- Uses ImageMagick engine instead of the outdated built-in GD2
- Deletes image files from the media folder that are not used by any product/category to reduce the size of the folder
- Monitors whether an image file has a respective DB record, and vice versa.
- Removes DB entries about product/category's image files that do not exist
- Provides scheduled cleaning by cron
Release NotesBack to top
- Compatible with CE: 1.4 220.127.116.11 1.4.2 1.5 1.6 1.6.1 18.104.22.168 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3
- Stability: Stable Build