General Purpose Conversion: Photos -> 1-Bit?
Posted: 2014-04-30T12:20:07-07:00
Hello folks,
New IM user. First, thanks for this incredibly powerful CLI application. I simply love it.
What I'd like to do is develop an efficient, general purpose script for converting color photographs into 1-Bit GIF format. The end goal is to get the smallest file size, and still retain enough visual information with the pixels so the photograph (for instance a face) can be positively recognized when compared with the original.
Original Images range in size typically from a maximum dimension of 800 to 1400, and typically in PNG or JPG format. We're not dealing with huge, high-dimension tiffs here.
I'm a Linux user, and using the Bash shell for handling IM from the console for batch processing. I've tried quite a few options with convert. The order in which these are processed, from left to right, seems to be significant. My knowledge of image processing is at the hobbyist level.
A list of things I've tried:
Putting these in different orders changes the quality of the dither, and the different ordered-dither options can have a dramatic effect on the features of a processsed photograph. I'm well aware of the fact that it's typically more efficient just to use the JPG format with a lower quality to optimize file size, but I'd like to see if anyone has come up with a more-or-less "standard" method using convert to yield the best possible 2-color result.
Thanks for your time!
New IM user. First, thanks for this incredibly powerful CLI application. I simply love it.
What I'd like to do is develop an efficient, general purpose script for converting color photographs into 1-Bit GIF format. The end goal is to get the smallest file size, and still retain enough visual information with the pixels so the photograph (for instance a face) can be positively recognized when compared with the original.
Original Images range in size typically from a maximum dimension of 800 to 1400, and typically in PNG or JPG format. We're not dealing with huge, high-dimension tiffs here.
I'm a Linux user, and using the Bash shell for handling IM from the console for batch processing. I've tried quite a few options with convert. The order in which these are processed, from left to right, seems to be significant. My knowledge of image processing is at the hobbyist level.
A list of things I've tried:
Code: Select all
-ordered-dither (with all built-in options such as o2x2 / o4x4 / h4x4a / h4x4o etc]
-colorspace gray
-sigmoidal-contrast [with different settings]
-monochrome
-colors 2
Thanks for your time!