lat9 / zen_Image-Handler

Image Handler 5 is really meant to ease the management of product images (particularly the management of additional product images), and to help improve page performance by optimizing the product images.
GNU General Public License v2.0
2 stars 3 forks source link

IH {small|medium|large} images background, set to transparent #17

Open lat9 opened 4 months ago

lat9 commented 4 months ago

See this Zen Cart support thread.

It appears that setting those values to transparent is resulting in logs similar to

Request URI: /index.php?main_page=product_info&cPath=5_6&products_id=425, IP address: 54.36.148.169, Language id 2
#0 /.../htdocs/includes/classes/bmz_image_handler.class.php(1055): zen_debug_error_handler()
#1 /.../htdocs/includes/classes/bmz_image_handler.class.php(856): ih_image->get_background_rgb()
#2 /.../htdocs/includes/classes/bmz_image_handler.class.php(430): ih_image->resize_imageGD()
#3 /.../htdocs/includes/classes/bmz_image_handler.class.php(282): ih_image->get_resized_image()
#4 /.../htdocs/includes/functions/extra_functions/functions_bmz_image_handler.php(154): ih_image->get_local()
#5 /.../htdocs/includes/functions/html_output.php(215): handle_image()
#6 /.../htdocs/includes/templates/bootstrap/templates/tpl_modules_main_product_image.php(19): zen_image()
#7 /.../htdocs/includes/templates/bootstrap/templates/tpl_product_info_display.php(61): require('/data01/virt991...')
#8 /.../htdocs/includes/modules/pages/product_info/main_template_vars.php(140): require('/data01/virt991...')
#9 /.../htdocs/includes/templates/bootstrap/common/tpl_main_page.php(227): require('/data01/virt991...')
#10 /.../htdocs/index.php(94): require('/data01/virt991...')
--> PHP Warning: Undefined array key 1 in /.../htdocs/includes/classes/bmz_image_handler.class.php on line 1055.