Skip to content

Commit 7c9f8d8

Browse files
ENGCOM-2802: [Forwardport] Fixed #16929 - Incorrect displaying Product Image Watermarks on Magento 2.2.5 #17623
- Merge Pull Request #17623 from ronak2ram/magento2:2.3-develop-PR-port-17013 - Merged commits: 1. 686406a
2 parents 05f9df7 + 686406a commit 7c9f8d8

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)