Drawing a CMYK Image
Posted: 2011-09-18T22:57:03-07:00
Hi,
I wonder if there is a way of drawing a cmyk Image.
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.
Is there something wrong?
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');