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.
How to ignore a 16-bit pseudocolour colourmap
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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".
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/
https://imagemagick.org/Usage/