From e3c8ca2edf562bd5731625844520ab486ea031c4 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 20 Oct 2023 16:16:08 +0200 Subject: [PATCH] Create new images with RGB colorspace --- src/Drivers/Imagick/ImageFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drivers/Imagick/ImageFactory.php b/src/Drivers/Imagick/ImageFactory.php index 773f1a53..999965d9 100644 --- a/src/Drivers/Imagick/ImageFactory.php +++ b/src/Drivers/Imagick/ImageFactory.php @@ -57,7 +57,7 @@ class ImageFactory implements FactoryInterface $imagick->newImage($width, $height, new ImagickPixel('rgba(0, 0, 0, 0)'), 'png'); $imagick->setType(Imagick::IMGTYPE_UNDEFINED); $imagick->setImageType(Imagick::IMGTYPE_UNDEFINED); - $imagick->setColorspace(Imagick::COLORSPACE_UNDEFINED); + $imagick->setColorspace(Imagick::COLORSPACE_RGB); return $imagick; }