Skip to content

Commit 6ac0a39

Browse files
ENGCOM-2802: [Forwardport] Fixed #16929 - Incorrect displaying Product Image Watermarks on Magento 2.2.5 #17623
2 parents 6b2b0f1 + 7c9f8d8 commit 6ac0a39

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ public function watermark($imagePath, $positionX = 0, $positionY = 0, $opacity =
438438
$col = imagecolorallocate($newWatermark, 255, 255, 255);
439439
imagecolortransparent($newWatermark, $col);
440440
imagefilledrectangle($newWatermark, 0, 0, $this->getWatermarkWidth(), $this->getWatermarkHeight(), $col);
441-
imagealphablending($newWatermark, true);
442441
imagesavealpha($newWatermark, true);
443442
imagecopyresampled(
444443
$newWatermark,
@@ -463,7 +462,6 @@ public function watermark($imagePath, $positionX = 0, $positionY = 0, $opacity =
463462
$col = imagecolorallocate($newWatermark, 255, 255, 255);
464463
imagecolortransparent($newWatermark, $col);
465464
imagefilledrectangle($newWatermark, 0, 0, $this->_imageSrcWidth, $this->_imageSrcHeight, $col);
466-
imagealphablending($newWatermark, true);
467465
imagesavealpha($newWatermark, true);
468466
imagecopyresampled(
469467
$newWatermark,

0 commit comments

Comments
 (0)