[magick-developers] How to force 8bit depth for each Channel

ademmler news at ademmler.com
Wed Mar 4 22:17:48 UTC 2009


Hi,

yes I am using -depth 8.


I want to get image statistics on a base of 8bit for each color  
channel - always.
But actually I get 1bit, 8bit and depening on the image also 5/6/7  
bits . . . ?

I tested this:
identify -colorspace CMYK -depth 8 -verbose filename

But the actual results are:

For CMYK sample:
   Depth: 8-bit
   Channel depth:
     cyan: 8-bit
     magenta: 8-bit
     yellow: 8-bit
     black: 1-bit

Grey sample:
Depth: 8-bit
   Channel depth:
     cyan: 1-bit
     magenta: 1-bit
     yellow: 1-bit
     black: 8-bit

For CMYK (pure yellow channel)
Depth: 8/1-bit
   Channel depth:
     cyan: 1-bit
     magenta: 1-bit
     yellow: 1-bit
     black: 1-bit

Thanks for your help Alexander



More information about the Magick-developers mailing list