1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 08:40:33 +02:00

Create new images with RGB colorspace

This commit is contained in:
Oliver Vogel
2023-10-20 16:16:08 +02:00
parent df4c3e0ddd
commit e3c8ca2edf

View File

@@ -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;
}