Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit ae24b01

Browse files
authored
Fixed #16929 - Incorrect displaying Product Image Watermarks on Magento 2.2.5
1 parent 3259f5a commit ae24b01

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)