Skip to content

PHP 8.1 TypeError: imagecopymerge(): Argument #9 ($pct) must be of type int in GD when custom watermark image is applied #3727

Closed
@Tomasz-Silpion

Description

@Tomasz-Silpion

Preconditions (*)

  1. PHP 8.1 or newer.
  2. Main branch or any recent version of OpenMage.

Steps to reproduce (*)

  1. Go to System -> Configuration -> Product Image Watermarks.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions