DivaVocals / zen_Image-Handler

Image Handler 4 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
7 stars 13 forks source link

PHP Fatal error: Uncaught TypeError: imagecolorallocatealpha(): Argument #2 ($red) must be of type int #252

Closed torvista closed 2 years ago

torvista commented 2 years ago

PHP Fatal error: Uncaught TypeError: imagecolorallocatealpha(): Argument #2 ($red) must be of type int, float given in /includes/classes/bmz_image_handler.class.php:690 https://github.com/DivaVocals/zen_Image-Handler/blob/d8965f5be4f77fbf3eeec2f5db38400f966e6ba9/1_Installation_Files%20(v1.5.5)/includes/classes/bmz_image_handler.class.php#L690

This is caused by the function alphablend returning floats instead of ints. I casted them to ints...seems ok for the moment...