Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -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_TRUECOLORALPHA') ? \Imagick::IMGTYPE_TRUECOLORALPHA : \Imagick::IMGTYPE_TRUECOLORMATTE);
} catch (\ImagickException $e) {
throw new \Intervention\Image\Exception\NotReadableException(
@@ -79,6 +79,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
$core = new \Imagick;
try {
$core->setBackgroundColor(new \ImagickPixel('transparent'));
$core->readImageBlob($binary);