Wrong colour drawing CMYK rectangle

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
MarcinG

Wrong colour drawing CMYK rectangle

Post by MarcinG »

Hello,

I believe the is a problem with cmyk colour when drawing, I do use the following code:

Code: Select all

convert -density 300x300 -colorspace CMYK -depth 8 -fill "[b]cmyk(100%, 60%, 0, 30%)"[/b] -draw "rotate '-10' rectangle 3000,2500 4196,2858'" -font "AGaramondPro-Semibold.otf" -pointsize 45.8 -fill "cmyk(255, 255, 255, 255)" -draw "rotate '-10' text 3150,2750 'COUPON!'" output.tif rec.tif

The colour of the rectangle is supposed to be dark blue, but it gets orange (cmyk(0, 34%, 66%, 0).

Am I doing it the wrong way?
MarcinG

Re: Wrong colour drawing CMYK rectangle

Post by MarcinG »

I discovered that CMYK bevahes like RGB with Alpha, so:

C goes for Red
M goes for Green
Y goes for Blue
K is aplha transparency

Can u tell me what that is?
Do You know any solutions?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Wrong colour drawing CMYK rectangle

Post by magick »

Drawing requires the RGBA color model. Internally, images are stored as RGB(A) or CMY(A)K.
MarcinG

Re: Wrong colour drawing CMYK rectangle

Post by MarcinG »

Thank You for the reply.
Post Reply