Text Color Shifing on CMYK Pics

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
funkychicken818

Text Color Shifing on CMYK Pics

Post by funkychicken818 »

I have a CMYK Pic and i am adding text to it using -draw and -fill "cmyk(0%,100%,100%,0%)" for the color but it changes for somereason to -fill "cmyk(100%,0%,0%,0%)", i am not sure why its doing this but it is. The only thing i can think of is that i converts my cmyk color to rgb which is -fill "cmyk(0%,100%,100%,0%)" = -fill "rgb(255,0,0)" and converts it back but does not properly do it and ends up with -fill "cmyk(100%,0%,0%,0%)".
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Text Color Shifing on CMYK Pics

Post by magick »

Many of the algorithms in ImageMagick support multiple colorspaces, however, drawing and annotation only operate in the RGB colorspace. The solution is to use proper color profiles to first convert CMYK to RGB, draw on it, and then convert from RGB to CMYK.
Post Reply