Skip to content

Commit

Permalink
Removing the KEEP_TRANSPARENCY const
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Aug 16, 2018
1 parent bfeba59 commit 4f4a8a1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/internal/Magento/Framework/Image/Adapter/Gd2.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
*/
class Gd2 extends \Magento\Framework\Image\Adapter\AbstractAdapter
{
/**
* Keep the transparency for the images in the wysiwyg editors
*/
const KEEP_TRANSPARENCY = true;

/**
* Required extensions
*
Expand Down Expand Up @@ -74,7 +69,7 @@ public function open($filename)
$this->_imageHandler = call_user_func($this->_getCallback('create'), $this->_fileName);
$fileType = $this->getImageType();
if (in_array($fileType, [IMAGETYPE_PNG, IMAGETYPE_GIF])) {
$this->_keepTransparency = self::KEEP_TRANSPARENCY;
$this->_keepTransparency = true;
if ($this->_imageHandler) {
$isAlpha = $this->checkAlpha($this->_fileName);
if ($isAlpha) {
Expand Down

0 comments on commit 4f4a8a1

Please sign in to comment.