How to ignore a 16-bit pseudocolour colourmap

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

The color map is what contains the pixel values.

If you want just the colormap indexes the image is using, say as a grey scale image, then you are out of luck.. IM does the rigt thing according to the image, and that is to look up the colors from the color map, not use the index to the color map.

You will need to find some other program to convert colormap index values, into a greyscale image of some type. OR use the lower level API of Magcik Core to do the job. Not a simple matter.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

If you want top access the pixel data, there are lots better formats than png.
Look at txt: xpm: and ppm: The latter can be made into a non-binary format
by filtering it with "pnmnoraw".
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply