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?


----- Original Message ----- From: "Gabe Schaffer" <[EMAIL PROTECTED]>
To: "Anonymous" <[EMAIL PROTECTED]>
Sent: Tuesday, May 30, 2006 9:53 PM
Subject: Re: [magick-users] identify 24-bit files


On 5/30/06, Anonymous <[EMAIL PROTECTED]> wrote:
Isn't the " %q" (quantum depth) used for that?

No, I believe that's the quantum depth that ImageMagick is compiled
for (Q8, Q16, Q32).

Can identify return the number of channels? How?

I think you have to parse the output of %r.

GNS

----- Original Message -----
From: "Gabe Schaffer" <[EMAIL PROTECTED]>
To: "Anonymous" <[EMAIL PROTECTED]>
Cc: "ImageMagick" <[email protected]>
Sent: Tuesday, May 30, 2006 6:24 PM
Subject: Re: [magick-users] identify 24-bit files


> On 5/30/06, Anonymous <[EMAIL PROTECTED]> wrote:
>> Why doesn't this command return 24?
>> identify -format "%z" test.jpg
>
> It's telling you how many bits per channel. Multiply that by how many
> channels (3) to get 24.
>
> GNS
>
>



_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to