change all pixels of one color to another?
Posted: 2011-10-22T20:15:52-07:00
(OSX or ubuntu, current IM.)
probably a common novice question, but a search here did not give me the answer.
I have a pdf file (in cmyk). I first convert it into a png file. this part is easy with ghostscript. something like
# gs -dBATCH -dNOPAUSE -sDEVICE=png16m -dTextAlphasBits=4 -dGraphicsAlphasBits=4 -r300 -sOutputFile=teststep1.png $@
the part I need help with is that I want to change all pixels that are exactly cyan (1,0,0,0) into, say, rgb blue (0,0,1). just this exact color, not something related (like 0.99,0.01,0,0). is there a magick incantation that accomplishes this?
advice appreciated.
/iaw
probably a common novice question, but a search here did not give me the answer.
I have a pdf file (in cmyk). I first convert it into a png file. this part is easy with ghostscript. something like
# gs -dBATCH -dNOPAUSE -sDEVICE=png16m -dTextAlphasBits=4 -dGraphicsAlphasBits=4 -r300 -sOutputFile=teststep1.png $@
the part I need help with is that I want to change all pixels that are exactly cyan (1,0,0,0) into, say, rgb blue (0,0,1). just this exact color, not something related (like 0.99,0.01,0,0). is there a magick incantation that accomplishes this?
advice appreciated.
/iaw