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.
depth 1: colors are not proper having depth 1.
- 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.
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
-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