Batch Image compression tool for optimizing thousands of images
- by Daniel Magliola
Hi all,
I'm maintaining a site that has thousands of images that have not been compressed nearly enough. The homepage weighs in at 1.5 Mb currently, and it could easily be way less that half that.
I'm looking for some kind of tool that'll take a folder full of JPG pictures and will recompress them to their "optimal" compression value.
Obviously, "optimal lossy compression setting" is an oxymoron, but I'm thinking maybe a tool that'll try different levels and compare the outputs to the input, and choose a "sweet spot" between size and destruction?
Or even try whether PNG is a better option, many times it is, for "drawing" type stuff.
Does anyone of you know any such tool?
I'd have lots of fun coding one, but I bet someone already did and will save me 2 days.
Alternatively, of course, anything that'll take all pictures in a folder and recompress them with a fixed quality level (say, 40) will also work, it'll just not make my inner nerd as happy, but it'll solve my problem just fine.
(Ideally something that can run on Windows, ideally from the command line)
Thank you!