Limiting Picture Size

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
haleg
Posts: 8
Joined: 2011-01-19T16:54:29-07:00
Authentication code: 8675308

Limiting Picture Size

Post by haleg »

I have a TIF image that is 16 colors (4 bits per pixel), and uses Packbits compression. ~5MB size.

I execute the following command to remove the background "baby blue" from the image that originates from a IrfanView conversion of the scanned image.

"convert Picture_In.tif -fuzz 5% -fill WHITE -opaque "#D3E9F7" -compress LZW Picture-Out.tif"

The output file size is 11.7 MB and results in 24 bits per pixel. although there are only 16 unique colors as desired.

When I put "-colors 16" in the command line, the program never completes.

What am I doing wrong?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Limiting Picture Size

Post by fmw42 »

post a link to your input file and also let us know what version of IM and what platform you are using.

try adding

+dither -colors 16 -depth 4 -type palette

or

at least

+dither -colors 16 -depth 8 -type palette
Post Reply