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?
Limiting Picture Size
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Limiting Picture Size
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
try adding
+dither -colors 16 -depth 4 -type palette
or
at least
+dither -colors 16 -depth 8 -type palette