cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2.6 watermark transparency problem

Magento 2.2.6 watermark transparency problem

Hi all

 

Please assist me newbie magento user.

Magento 2.2.6 watermark transparency problem.

 

Found solution on github

Backward patch for 2.2.6;

diff --git a/Image/Adapter/Gd2.php b/Image/Adapter/Gd2.php
index 33d7376..e04ecc3 100644
--- a/Image/Adapter/Gd2.php
+++ b/Image/Adapter/Gd2.php
@@ -425,7 +425,6 @@ class Gd2 extends \Magento\Framework\Image\Adapter\AbstractAdapter
$col = imagecolorallocate($newWatermark, 255, 255, 255);
imagecolortransparent($newWatermark, $col);
imagefilledrectangle($newWatermark, 0, 0, $this->getWatermarkWidth(), $this->getWatermarkHeight(), $col);
- imagealphablending($newWatermark, true);
imagesavealpha($newWatermark, true);
imagecopyresampled(
$newWatermark,
@@ -450,7 +449,6 @@ class Gd2 extends \Magento\Framework\Image\Adapter\AbstractAdapter
$col = imagecolorallocate($newWatermark, 255, 255, 255);
imagecolortransparent($newWatermark, $col);
imagefilledrectangle($newWatermark, 0, 0, $this->_imageSrcWidth, $this->_imageSrcHeight, $col);
- imagealphablending($newWatermark, true);
imagesavealpha($newWatermark, true);
imagecopyresampled(
$newWatermark,
--
2.17.1

 

But i am newbie not sure how to appy backward patch code as per above.

 

Thank you