1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-12 00:43:59 +02:00

handle IM7 constant change

IMGTYPE_TRUECOLORMATTE -> IMGTYPE_TRUECOLOR
This commit is contained in:
Szekeres Bálint
2017-01-30 17:04:22 +01:00
parent 88911910dc
commit 29f478508b

View File

@@ -20,7 +20,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
$core->setBackgroundColor(new \ImagickPixel('transparent')); $core->setBackgroundColor(new \ImagickPixel('transparent'));
$core->readImage($path); $core->readImage($path);
$core->setImageType(\Imagick::IMGTYPE_TRUECOLORMATTE); $core->setImageType(defined('\Imagick::IMGTYPE_TRUECOLORMATTE') ? \Imagick::IMGTYPE_TRUECOLORMATTE : \Imagick::IMGTYPE_TRUECOLOR);
} catch (\ImagickException $e) { } catch (\ImagickException $e) {
throw new \Intervention\Image\Exception\NotReadableException( throw new \Intervention\Image\Exception\NotReadableException(