mirror of
https://github.com/Intervention/image.git
synced 2025-08-27 07:44:30 +02:00
legacy Imagick::IMGTYPE_TRUECOLOR -> Imagick::IMGTYPE_TRUECOLORALPHA
This commit is contained in:
@@ -20,7 +20,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
|
||||
|
||||
$core->setBackgroundColor(new \ImagickPixel('transparent'));
|
||||
$core->readImage($path);
|
||||
$core->setImageType(defined('\Imagick::IMGTYPE_TRUECOLORMATTE') ? \Imagick::IMGTYPE_TRUECOLORMATTE : \Imagick::IMGTYPE_TRUECOLOR);
|
||||
$core->setImageType(defined('\Imagick::IMGTYPE_TRUECOLORMATTE') ? \Imagick::IMGTYPE_TRUECOLORMATTE : \Imagick::IMGTYPE_TRUECOLORALPHA);
|
||||
|
||||
} catch (\ImagickException $e) {
|
||||
throw new \Intervention\Image\Exception\NotReadableException(
|
||||
|
Reference in New Issue
Block a user