mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 00:14:03 +02:00
handle IM7 constant change
IMGTYPE_TRUECOLORMATTE -> IMGTYPE_TRUECOLOR
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(\Imagick::IMGTYPE_TRUECOLORMATTE);
|
||||
$core->setImageType(defined('\Imagick::IMGTYPE_TRUECOLORMATTE') ? \Imagick::IMGTYPE_TRUECOLORMATTE : \Imagick::IMGTYPE_TRUECOLOR);
|
||||
|
||||
} catch (\ImagickException $e) {
|
||||
throw new \Intervention\Image\Exception\NotReadableException(
|
||||
|
Reference in New Issue
Block a user