5

I want to save .gif conversions of other images with a specified colormap. The "-remap cmap.gif" option in Image Magick

example: convert -remap cmap.gif input.png output.gif

DOES process input.png using the specified colors from cmap.gif, but it changes the order in the output colormap. Is there a way to force Image Magick to used EXACTLY the same colormap?

I am attempting to add new images to an ancient display program that accepts .gif file input but uses a fixed colormap with no ability to alter the colormap for individual images.

holistone
  • 63
  • 3
  • If you are using version 6+ your input image is in the wrong place but this may not effect the outcome convert input.png -remap cmap.gif output.gif – Bonzo Jun 29 '12 at 18:36
  • I'm using Q8, but the order doesn't make any difference in this case. I'm actually using label to create an image of some text and I need the color to correspond to the same index used in cmap.gif. The example was just a simplified command that illustrates the problem. – holistone Jun 29 '12 at 19:29

1 Answers1

-1

Does it help to add the +dither parameter?

convert  input.png  -remap cmap.gif  +dither  output.gif
Kurt Pfeifle
  • 86,724
  • 23
  • 248
  • 345