Convert -profile ... force colour A to colour B ?

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
rshea
Posts: 11
Joined: 2009-11-30T02:06:33-07:00
Authentication code: 8675309

Convert -profile ... force colour A to colour B ?

Post by rshea »

Hi - I'm using :

Code: Select all

convert.exe f1.tiff +profile icc -profile AdobeRGB1998.icc -profile USWebCoatedSWOP.icc -strip  f2.tiff
to convert the colour management of an image f1.tiff from RGB to CMYK and it works fine.

What I'd like to do as well is to ensure that all the rgb(0,0,0) in the input image become to be CMYK(0,0,0,100) in the output.

Can someone tell me how to do that ? It doesn't happen in my current process.

The input file histogram looks like this :

Code: Select all

  Histogram:
     42810: #000000 black
     37306: #8FAED6 rgb(143,174,214)
   1489484: #FFFFFF white
The output file histogram looks like this :

Code: Select all

  Histogram:
   1489484: #00000000 black
     37306: #7E3B0E00 cmyk(126,59,14,0)
     42810: #BDAEAAE5 cmyk(189,174,170,229)
Those 42810 pixels which imagemagick describes as cmyk(189,174,170,229) (and which are more generally described as cmyk(74, 68, 67, 90)) I would like to be cmyk(0,0,0,256) (or cmyk(0,0,0,100) outside of imagemagick).

In an ideal world I would provide a 'hint' to the profile command that when it comes across an rgb(0,0,0) it should map it to cmyk(0,0,0,256) (or cmyk(0,0,0,100)) - is there a way to do that ?

All suggestions gratefully accepted.

thanks

Richard.
Post Reply