Page 1 of 1

depth 1: colors are not proper having depth 1.

Posted: 2009-11-16T06:07:39-07:00
by Pravin
Hi,

I am using ImageMagick to generate the thumbnail of images.
Following are details

Command: convert.exe <input file name> -depth 1 <outputfilename>.
Version: ImageMagick-6.5.3-Q16.
Operating System: Windows Xp Service pack 2 and Windows Server 2003.

Image colors are not proper. This issue is with only for -depth 1. If I specify a depth as 4 or 16 or 24, It generates thumbnail properly.

please let me know if this is the bug in release or I am doing something wrong.

Re: depth 1: colors are not proper having depth 1.

Posted: 2009-11-16T15:31:39-07:00
by fmw42
try

-colorspace gray -depth 1

or

-monochrome

or

-threshold XX%

or

-type bilevel

or

+dither -colors 2 -colorspace gray

see http://www.imagemagick.org/Usage/quantize/#two_color