"Anonymous" on wrote...
| identify -format "%r" image24bit_rgb.bmp
|
| DirectClassGray <--- if image only has gray pixels.
| DirectClassRGB <--- if image has any colored pixels.
|
| How can I distinguish between 8-bit grayscale images
| and 24-bit images with only gray pixels in it?
|
A IM will read in the image before identifying it and it does not use
24 bit values, IM probably will not be able to tell you.
You will need a specific BMP identification program, such as provided
for other formats. EG: jpegtrans pngtrans giftrans
I don't know what you can use, but maybe the UNIX file comannds
can tell you.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
"We learned dwarves are not ment to fly."
came a voice from the edge of the circle. -- Rick Cook, "Wizardry Cursed"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users