开发者

Batch Image compression tool for optimizing thousands of images [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

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 pr开发者_运维问答oblem just fine.

(Ideally something that can run on Windows, ideally from the command line)

Thank you!


I used ImageMagick for that purpose. It consist of a lot of things, among which a set of commandline tools that can be used to chain image operations along each other.

It is fun to experiment on the commandline, copy it in a script and let it rip over a couple thousand images. I found the default quality of the resulting images also pretty good.

Here is the website. I used it under Linux, but I saw there is a windows version too.


If you are looking for a non-programming approach (kind of the wrong idea here on SO...) you could try IrfanView's batch feature. It's a lightweight image editor that will let you batch convert images based on a few simple criteria (such as file dimensions, etc.)


For optimizing png's, pngout is king


http://icompressor.blogspot.in/ Mass Image Compressor does the job of doing compression of all the images in single folder. It doesn't have command line arg or intelligent mechanism to automatically decide compression levels but it provides you a sample compression to give you feel of compression based on compression parameters that you have set.


In the past I faced this problem, and found a way to compress JPEG images. This answer cannot help you compress PNG or other formats, but JPEG.

I found that Windows XP's MS Paint app is wonderful for this purpose. It compresses a JPEG image very nicely without any visible loss. So, I wrote a utility to mass compress the files. Here is the link: AutoSavePaint 1.7.0.2

It has helped few a people since it was published. I hope it helps you too! :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜