problem - invalid colormap index

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
carol_sun
Posts: 19
Joined: 2009-11-06T00:49:59-07:00
Authentication code: 8675309

problem - invalid colormap index

Post by carol_sun »

I have one bmp image can't be resized. But it can be viewed in windows.

/usr/local/ImageMagick-6.7.0/bin# ./convert -sample 40x40 441.bmp 1.jpg
convert: invalid colormap index `441.bmp' @ error/colormap-private.h/ConstrainColormapIndex/34.

http://ice.qq.com/images/441.bmp

Something wrong with this image?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: problem - invalid colormap index

Post by anthony »

Typically it means the image is wrong in some way. In this case it sounds like one pixel is using a color table index that goes beyond the limits of the supplied color table. However I could be wrong, and am not certain on how to test that theory.

Many programs will not report errors like this but try to carry on regardless.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
rogerdpack
Posts: 7
Joined: 2011-06-16T16:52:23-07:00
Authentication code: 8675308

Re: problem - invalid colormap index

Post by rogerdpack »

I just got this, too, however with older versions of imagemagick I don't think I did. Unfortunately imagemagick servers don't appear to keep older versions available for download so I can't tell you which ones work :)

Command ("identify -ping C:/Users/packrd/AppData/Local/Temp/mini_magick.196.64370") failed: {:status_code=>1, :output=>"C:/Users/packrd/AppData/Local/Temp/mini_magick.196.64370 BMP 5x11 5x11+0+0 8-bit PseudoClass 256c 1.17KB 0.000u 0:00.000\nMagick: invalid colormap index `C:/Users/packrd/AppData/Local/Temp/mini_magick.196.64370' @ error/image.c/SyncImage/4310.\n"}
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: problem - invalid colormap index

Post by glennrp »

Older versions of ImageMagick can be found at imagemagick.sourceforge.net
(only the tar.gz sources, and only the last, usually x.y.z-10, release of each
ImageMagick-x.y.z). Also you can check out any particular version since 6.5.5-6 from
SVN.
Post Reply