Page 1 of 1

Limiting Picture Size

Posted: 2011-05-19T13:57:46-07:00
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?

Re: Limiting Picture Size

Posted: 2011-05-19T14:57:20-07:00
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