Current Support Thread at Zen Cart Forums: https://www.zen-cart.com/showthread.php?222983-Image-Handler-5-(for-v1-5-5)-Support-Thread
Notes:
If you are using IH5 on a site that also uses SitemapXML and have configured SitemapXML to Add Products Images, you'll need to edit one of the SitemapXML's files to allow those images to be properly reported. Editing /includes/modules/pages/sitemapxml/sitemapxml_products.php, you'll see this code-block towards the top of the file:
define('SITEMAPXML_PRODUCTS_IMAGES_SIZE', 'large');
define('SITEMAPXML_PRODUCTS_IMAGES_ADDITIONAL', 'false'); // true false
define('SITEMAPXML_PRODUCTS_IMAGES_FUNCTION', 'false'); // true false
… and you'll make the highlighted change to instruct SitemapXML to use the built-in Zen Cart function to create the images' links:
define('SITEMAPXML_PRODUCTS_IMAGES_SIZE', 'large');
define('SITEMAPXML_PRODUCTS_IMAGES_ADDITIONAL', 'false'); // true false
define('SITEMAPXML_PRODUCTS_IMAGES_FUNCTION', 'true'); // true false
Image Handler5 (IH5) simplifies the management of product images (particularly additional product images) and helps to improve page performance by optimizing those images. Product images (based on your image settings) are created in the Image Handler5 bmz_cache directory. The original images are not modified, so it's perfectly safe to use on an existing store.
Image Handler5 enables you to use GD libraries or ImageMagick (if installed on your server) to generate and resize small, medium and large images on the fly as they're required. You can simply upload just one image or you can have different sources for medium and large images. Image Handler5 further enables you to watermark your images (overlay a second specific translucent image) and have medium or large images pop up when you move your mouse over a small image (fancy hover).
This contribution includes a powerful admin interface to browse your products just like you would with the Attribute Manager and upload, delete or add additional images without having to do this manually via FTP. IH5 works fine with mass update utilities like EZ-Populate and the Database I/O Manager (DbIo).
For additional information, please refer to the documentation on the plugin's GitHub repository; see above for the link.
This section identifies the procedure you'll use to install, upgrade or remove the plugin for your Zen Cart.
Note: IH5's uninstall processing is provided as a separate script, so you can use your admin's Admin / Admin Profiles tool to restrict its usage to authorized admin-users.
This section identifies the files added or modified for this plugin as well as the plugin's change history.
The plugin provides the following files in its distribution zip-file.
| File Name | Comments |
|---|---|
| /bmz_cache/.htaccess | |
| /images/watermark.png | |
| /images/medium/watermark_MED.png | |
| /images/large/watermark_LRG.png | |
| /includes/auto_loaders/config.colorbox.php | Added in v5.0.0. |
| /includes/auto_loaders/config.fual_slimbox.php | Added in v5.0.0. |
| /includes/auto_loaders/config.image_handler.php | Added in v5.0.0. |
| /includes/classes/bmz_gif_info.class.php | Unused, removed in v5.2.0. |
| /includes/classes/bmz_image_handler.class.php | |
| /includes/classes/observers/ColorBoxObserver.php | Added in v5.0.0. |
| /includes/classes/observers/FualSlimboxObserver.php | Added in v5.0.0. |
| /includes/classes/observers/ImageHandlerObserver.php | Added in v5.0.0. |
| /includes/extra_configures/bmz_image_handler_conf.php | |
| /includes/extra_configures/bmz_io_conf.php | |
| /includes/extra_datafiles/image_handler_logging.php | Added in v5.1.0. |
| /includes/functions/extra_functions/functions_bmz_image_handler.php | |
| /includes/functions/extra_functions/functions_bmz_io.php | |
| /includes/modules/YOUR_TEMPLATE/additional_images.php | No longer distributed, as of v5.2.0. |
| /includes/modules/YOUR_TEMPLATE/main_product_image.php | No longer distributed, as of v5.2.0. |
| /includes/templates/YOUR_TEMPLATE/css/style_imagehover.css | Removed in v5.2.0. |
| /includes/templates/YOUR_TEMPLATE/jscript/jscript_imagehover.js | Removed in v5.2.0. |
| /YOUR_ADMIN/image_handler.php | |
| /YOUR_ADMIN/image_handler_uninstall.php | Added in v5.0.0. |
| /YOUR_ADMIN/image_handler_view_config.php | Added in v5.0.1. |
| /YOUR_ADMIN/includes/ih_manager.php | |
| /YOUR_ADMIN/includes/auto_loaders/config.image_handler.php | |
| /YOUR_ADMIN/includes/classes/ImageHandlerAdmin.php | Added in v5.0.0. Contains functions used by image_handler.php, moved from that module. |
| /YOUR_ADMIN/includes/css/image_handler.css | Added in v5.3.0. |
| /YOUR_ADMIN/includes/extra_configures/bmz_image_handler_conf.php | |
| /YOUR_ADMIN/includes/extra_configures/bmz_io_conf.php | |
| /YOUR_ADMIN/includes/extra_datafiles/image_handler.php | |
| /YOUR_ADMIN/includes/extra_datafiles/image_handler_admin_logging.php | Added in v5.1.0. |
| /YOUR_ADMIN/includes/functions/extra_functions/functions_bmz_image_handler.php | |
| /YOUR_ADMIN/includes/functions/extra_functions/functions_bmz_io.php | |
| /YOUR_ADMIN/includes/init_includes/init_image_handler.php | |
| /YOUR_ADMIN/includes/languages/english/image_handler.php | Added in v5.0.0. |
| /YOUR_ADMIN/includes/languages/english/image_handler_about.php | Added in v5.0.1. |
| /YOUR_ADMIN/includes/languages/english/image_handler_uninstall.php | Added in v5.0.0. |
| /YOUR_ADMIN/includes/languages/english/image_handler_view_config.php | Added in v5.0.1. |
| /YOUR_ADMIN/includes/languages/english/extra_definitions/bmz_image_handler.php | Comments only for v5.0.0; definitions moved to image_handler.php. |
| /YOUR_ADMIN/includes/languages/english/extra_definitions/bmz_language_admin.php | Comments only for v5.0.0; definitions moved to image_handler_extra_definitions.php. |
| /YOUR_ADMIN/includes/languages/english/extra_definitions/image_handler_extra_definitions.php | Added in v5.0.0. |
Hashed.popup_image doesn't display when a product is disabled.spiffyCal elements. Thanks, @Zen4All!bmz_cache sub-directories. Thanks, @brittainmark!.strpos.additional_images notifier.edit product link; broken by zc156 Categories / Products restructuring.LARGE_IMAGE_WIDTH and _HEIGHT constants.configuration_description for small/medium/large image backgrounds.ih_log*.log contents when DIR_FS_CATALOG is set to '/'.imagepng, resulting in oversized images being created.Based on Image Handler2 Ver 2.0 Rev 7 for Zen Cart 1.3.8a updated by ckosloff.
Image Handler4 v4.0 modifications by:
and Image Handler5 modifications by: