Description
Preconditions (*)
- PHP 8.1 or newer.
- Main branch or any recent version of OpenMage.
Steps to reproduce (*)
- Go to System -> Configuration -> Product Image Watermarks.
- Add watermark images and set every opacity field to any value.
Expected result (*)
Watermark is properly applied to the product image.
Actual result (*)
TypeError: imagecopymerge(): Argument #9 ($pct) must be of type int, string given exception is thrown in lib/Varien/Image/Adapter/Gd2.php:504