Uncaught TypeError: imagecopymerge(): Argument #9 ($pct) must be of type int, string given in .../lib/Varien/Image/Adapter/Gd2.php:570

Posted . Visible to the public.

Uncaught TypeError: imagecopymerge(): Argument #9 ($pct) must be of type int, string given in /.../lib/Varien/Image/Adapter/Gd2.php:570
Stack trace:
#0 /.../lib/Varien/Image/Adapter/Gd2.php(570): imagecopymerge(Object(GdImage), Object(GdImage), 0, 0, 0, 0, 400, 400, '')
#1 /.../lib/Varien/Image.php(197): Varien_Image_Adapter_Gd2->watermark('/home/web/publi...', 0, 0, 30, false)
#2 /.../app/code/core/Mage/Catalog/Model/Product/Image.php(557): Varien_Image->watermark('/home/web/publi...')
#3 /.../app/code/core/Mage/Catalog/Helper/Image.php(362): Mage_Catalog_Model_Product_Image->setWatermark('default/images_...')
#4 /.../app/design/frontend/.../default/template/page/html/head.phtml(73): Mage_Catalog_Helper_Image->__toString()

Set the product watermark opacity to some integer value:

Image

kiatng
Last edit
kiatng
Posted by kiatng to OpenMage (2024-01-03 07:47)