Convert CMYK to RGB:
<?php
$cs = $im->getimagecolorspace();
if ($cs == Gmagick::COLORSPACE_CMYK)
{
$im->setImageColorspace(Gmagick::COLORSPACE_SRGB);
}
?>
Gmagick::setimagecolorspace
(PECL gmagick >= Unknown)
Gmagick::setimagecolorspace — Sets the image colorspace
Beschreibung
Sets the image colorspace.
Parameter-Liste
-
colorspace -
The image colorspace: UndefinedColorspace, RGBColorspace, GRAYColorspace, TransparentColorspace, OHTAColorspace, XYZColorspace, YCbCrColorspace, YCCColorspace, YIQColorspace, YPbPrColorspace, YPbPrColorspace, YUVColorspace, CMYKColorspace, sRGBColorspace, HSLColorspace, or HWBColorspace.
Rückgabewerte
The Gmagick object on success
Fehler/Exceptions
Wirft bei einem Fehler eine GmagickException.
MPLong
28-Jun-2010 11:24
