Page 1 of 1

Convert changes image type from Bilevel to Grayscale

Posted: 2012-04-16T07:34:13-07:00
by vi.srikanth
Hi

I have a tif, and I tried converting it to PNG in Linux and in Windows. Its original image type is "Bilevel". When I convert it to PNG in Windows, the PNG has "Grayscale" as its image type, however in Linux I still end up with a "BiLevel" as image type! Why is this change in behavior between Linux and Windows? My guess is that it is do with imagemagick configuration XMLs. Or is it something else? Could you please help me on how to configure/change/control this behavior?

Thanks
Srikanth

Re: Convert changes image type from Bilevel to Grayscale

Posted: 2012-04-16T10:50:02-07:00
by fmw42
What is your command? what do you want it to be bilevel or grayscale? Can you post a link to your tiff image?

Re: Convert changes image type from Bilevel to Grayscale

Posted: 2012-04-16T12:52:23-07:00
by glennrp
The PNG format does not have a "bilevel" subtype. If you convert an image that has only black or white pixels, it will be converted to a grayscale PNG with bit_depth == 1, which is essentially the same thing.