Skip to content

Commit 30991e6

Browse files
author
Oleksandr Iegorov
committed
MC-30296: Product image is not visible if a watermark image size is larger
1 parent 1c7f6f8 commit 30991e6

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Image/Adapter

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Image/Adapter/Gd2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,8 @@ private function imagecopymergeWithAlphaFix(
911911
return false;
912912
}
913913

914-
$transparancy = 127 - (($pct*127)/100);
915-
if (false === imagefilter($tmpImg, IMG_FILTER_COLORIZE, 0, 0, 0, $transparancy)) {
914+
$transparency = 127 - (($pct*127)/100);
915+
if (false === imagefilter($tmpImg, IMG_FILTER_COLORIZE, 0, 0, 0, $transparency)) {
916916
return false;
917917
}
918918

0 commit comments

Comments
 (0)