We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 310c884 + 99eb521 commit 96e4096Copy full SHA for 96e4096
lib/internal/Magento/Framework/Image/Adapter/Gd2.php
@@ -63,6 +63,16 @@ public function open($filename)
63
}
64
$this->imageDestroy();
65
$this->_imageHandler = call_user_func($this->_getCallback('create'), $this->_fileName);
66
+ $fileType = $this->getImageType();
67
+ if (in_array($fileType, [IMAGETYPE_PNG, IMAGETYPE_GIF])) {
68
+ $this->_keepTransparency = true;
69
+ if ($this->_imageHandler) {
70
+ $isAlpha = $this->checkAlpha($this->_fileName);
71
+ if ($isAlpha) {
72
+ $this->_fillBackgroundColor($this->_imageHandler);
73
+ }
74
75
76
77
78
/**
0 commit comments