I am trying to convert RGB.gif to CMYK.gif using the IMagick PHP module.
I wrote this piece of code
$i = new Imagick('mosaique.gif');
$i->setImageColorspace(Imagick::COLORSPACE_CMYK);
$i->setImageFormat('gif');
$i->writeImage('mosaique-cmyk.gif');
But the resulting "mosaique-cmyk.gif" is still RGB ... but with inverted colors (O_O)
What am I doing wrong?
EDIT:
I tried with .jpg and the image is converted to CMYK, but it is still negative.
EDIT 2:
I tried to run my script by creating .pdf on another server and it works fine.
Is there any known bug in IMagick? Are there any options to install in php5 library?
The version that returns the inverted image to me is newer than the one that works correctly
WRONG RESULT PHP 5.3.3 IMagick 3.0.0RC1 ImageMagick 6.6.2
CORRECT RESULT OF PHP 5.2.10 IMagick 2.1.1 ImageMagick 6.5.1