1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 21:42:53 +02:00

better handling of IM7 constant change

This commit is contained in:
Oliver Vogel
2017-02-06 14:26:06 +01:00
parent 3fd4edd5a3
commit 0020dd50e6

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(defined('\Imagick::IMGTYPE_TRUECOLORMATTE') ? \Imagick::IMGTYPE_TRUECOLORMATTE : \Imagick::IMGTYPE_TRUECOLORALPHA); $core->setImageType(defined('\Imagick::IMGTYPE_TRUECOLORALPHA') ? \Imagick::IMGTYPE_TRUECOLORALPHA : \Imagick::IMGTYPE_TRUECOLORMATTE);
} catch (\ImagickException $e) { } catch (\ImagickException $e) {
throw new \Intervention\Image\Exception\NotReadableException( throw new \Intervention\Image\Exception\NotReadableException(