depth 1: colors are not proper having depth 1.

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Pravin

depth 1: colors are not proper having depth 1.

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply