Skip to content

Commit d0ad839

Browse files
ENGCOM-2785: Fixed #16929 - Incorrect displaying Product Image Watermarks on Magento 2.2.5 #17013
- Merge Pull Request #17013 from ronak2ram/magento2:ronak2ram-patch-4 - Merged commits: 1. 3259f5a 2. ae24b01
2 parents 0e835c9 + ae24b01 commit d0ad839

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
@@ -425,7 +425,6 @@ public function watermark($imagePath, $positionX = 0, $positionY = 0, $opacity =
425425
$col = imagecolorallocate($newWatermark, 255, 255, 255);
426426
imagecolortransparent($newWatermark, $col);
427427
imagefilledrectangle($newWatermark, 0, 0, $this->getWatermarkWidth(), $this->getWatermarkHeight(), $col);
428-
imagealphablending($newWatermark, true);
429428
imagesavealpha($newWatermark, true);
430429
imagecopyresampled(
431430
$newWatermark,
@@ -450,7 +449,6 @@ public function watermark($imagePath, $positionX = 0, $positionY = 0, $opacity =
450449
$col = imagecolorallocate($newWatermark, 255, 255, 255);
451450
imagecolortransparent($newWatermark, $col);
452451
imagefilledrectangle($newWatermark, 0, 0, $this->_imageSrcWidth, $this->_imageSrcHeight, $col);
453-
imagealphablending($newWatermark, true);
454452
imagesavealpha($newWatermark, true);
455453
imagecopyresampled(
456454
$newWatermark,

0 commit comments

Comments
 (0)