From 4940a25e9673aeb4eac05ee943ed5616087f79a2 Mon Sep 17 00:00:00 2001 From: chellmann Date: Sat, 23 Dec 2017 22:27:34 +0100 Subject: [PATCH] Transparent Background for Images read from Blob --- src/Intervention/Image/Imagick/Decoder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Intervention/Image/Imagick/Decoder.php b/src/Intervention/Image/Imagick/Decoder.php index 6b2b40da..8cf2420a 100644 --- a/src/Intervention/Image/Imagick/Decoder.php +++ b/src/Intervention/Image/Imagick/Decoder.php @@ -79,6 +79,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder $core = new \Imagick; try { + $core->setBackgroundColor(new \ImagickPixel('transparent')); $core->readImageBlob($binary);