Convert CMYK to RGB:
<?php
$cs = $im->getimagecolorspace();
if ($cs == Gmagick::COLORSPACE_CMYK)
{
$im->setImageColorspace(Gmagick::COLORSPACE_SRGB);
}
?>
(PECL gmagick >= Unknown)
Gmagick::setimagecolorspace — Sets the image colorspace
colorspace
One of the Colorspace constant
(Gmagick::COLORSPACE_*
).
Hata durumunda bir GmagickException istisnası oluşur.