Page 1 of 1

Posted: 2006-05-23T20:16:19-07:00
by magick
Try this command:
  • convert -fill 'rgb(255,0,0)' image.png -color 'rgb(0,0,0)' -color cyan -fill 'rgb(0,255,0)' -color 'rgb(255,255,255)' -color 'rgb(128,128,128)' image.jpg
Add as many -color option as needed and of course specify your required rgb() colors. If you want this operation done fast, you'll need to code it up as a custom image filter. See http://www.imagemagick.org/script/archi ... hp#filters.[/list]

Posted: 2006-05-24T09:11:57-07:00
by magick
Custom filters permit users to easily add custom features to ImageMagick. You will find a sample custom filter as filters//analyze.c in the ImageMagick source distribution. Use it as a model for your own custom filter.