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

Merge pull request #679 from valentinxxx/master

handle IM7 constant change
This commit is contained in:
Oliver Vogel
2017-02-04 11:26:11 +01:00
committed by GitHub

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_TRUECOLORALPHA);
} catch (\ImagickException $e) { } catch (\ImagickException $e) {
throw new \Intervention\Image\Exception\NotReadableException( throw new \Intervention\Image\Exception\NotReadableException(