Page 1 of 1

Drawing a CMYK Image

Posted: 2011-09-18T22:57:03-07:00
by cyklop
Hi,
I wonder if there is a way of drawing a cmyk Image.

Code: Select all

new ImagickPixel('cmyk(0,100,0,0)');


This will create a CMYK color, but if I use this color to draw a rectangle or anything else, and analyse this afterwards in Photoshop, the used color is a way different of what i setup at first.

Code: Select all

$image = new Imagick();
$image->newImage(100, 100, 'none');
$draw = new ImagickDraw();
$color = new ImagickPixel('cmyk(0,100,0,0)');
$draw->setFillColor($color );
$draw->rectangle( 0, 0, 100, 100 );
$image->drawImage( $draw );
$image->setImageFormat('tif');
$image->writeImage('test.tif');
Is there something wrong?

Re: Drawing a CMYK Image

Posted: 2011-09-19T05:24:40-07:00
by magick
Drawing is only supported in RGB. We're looking at CMYK support in ImageMagick version 7.