Batch Image compression tool for optimizing thousands of images
Posted
by Daniel Magliola
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Magliola
Published on 2010-06-09T23:17:19Z
Indexed on
2010/06/09
23:22 UTC
Read the original article
Hit count: 319
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!
© Stack Overflow or respective owner