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?".
I'm and infrequent user of IM and most of the times I just use it to make thumbnails but my current project is to make a lowres CMYK PDF but I'm having problems with the output colour.
In its simplest form the command is:
convert input.pdf output.pdf
which gives me incorrect colour i.e. A red that has a CMYK value of:
0% cyan
100% Magenta
100% Yellow
0% black
is being converted too:
0% cyan
77% Magenta
83% Yellow
0% black
Could this be down to GhostScript? my full command is this:
The version of GS is 8.70. If I remember correctly they where installed using Yum and those specific versions where installed for a reason that escapes me now!
Both raster and vector objects appear to have been affected by the conversion.
I did read something before posting that am xml delegate could be edited to make GS use a specific profile when converting but I've been on so many pages today I can't find that now either!
I cannot get a perfect match, but these two are better than yours. The second is the closest. I convert to sRGB and then use a profile to convert back to CMYK.
convert: associate profile with image, a source and destination color profile required for transform `icc' @ profile.c/ProfileImage/812.
convert: Color profile operates on another colorspace `icc' @ profile.c/ProfileImage/1024
I have found a solution to my colour issues and that is to bypass IM and just use ghostscript! The below code gives me a lowres PDF with the colours correct and keeps the vectors as vectors: