A python script that recursively processes png and jpeg images present in the passed in directory and losslessly compresses them using deflopt, optipng, pngcrush, pngoptimizer and jpegtran. This script assumes that you have these binaries in your windows path. Grab the script from github.
Example:
python mash.py C:\foo
PS:If this interests you, take a look at the command line client that I wrote for yahoo!’s smush.it service.
You can as well use PIL.
What is PIL?
Where is the script ???
You can grab it from Github.
Your script is not on github, just one file I found on the repository (README.md). Can you re-upload, please? I want to try this nice script!
I am really sorry for the late response, you can grab the script from my bitbucket repo – https://bitbucket.org/abhirama/mash-images. Looks like I missed this one during the migration from bitbucket to github. This script is half baked. Please do your due diligence before you use this for anything critical.