Skip to content

Commit 31b1d0c

Browse files
committed
Reverted imagecolorallocate
1 parent 8ad6bd6 commit 31b1d0c

File tree

1 file changed

+1
-5
lines changed
  • lib/internal/Magento/Framework/Image/Adapter

1 file changed

+1
-5
lines changed

Diff for: lib/internal/Magento/Framework/Image/Adapter/Gd2.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,7 @@ protected function _createImageFromText($text)
734734

735735
$this->_createEmptyImage($width, $height);
736736

737-
$black = imagecolortransparent($this->_imageHandler, imagecolorallocatealpha($this->_imageHandler, 0, 0, 0, 127));
738-
imagealphablending($this->_imageHandler, false);
739-
imagesavealpha($this->_imageHandler, true);
740-
// imagecopyresampled($this->_imageHandler, $image, 0, 0, 0, 0, $width, $height, $width, $height);
741-
// $black = imagecolorallocate($this->_imageHandler, 0, 0, 0);
737+
$black = imagecolorallocate($this->_imageHandler, 0, 0, 0);
742738
imagestring($this->_imageHandler, $this->_fontSize, 0, 0, $text, $black);
743739
}
744740

0 commit comments

Comments
 (0)