PDA

View Full Version : [all variants] CLI interface to Yahoo Smush.it?



anarkhos
August 30th, 2010, 09:30 PM
I love Yahoo Smush.it. I am a webdev, and optimizing images quickly will a single command for any image type would be super duper.

http://www.smushit.com/ysmush.it/

I prefer this over other tools like `pngcrush` and `jpegoptim` and `optipng`. I use CLI on servers which don't have these packages, so I'd like CLI command (using a bash alias to a PHP script, perhaps) like:
$ smush someimage.png

So, has anyone written some kind of shell script which posts a image file and gets back the result for the Yahoo Smush.it service? This is a long shot, I know.

tyrondis
November 4th, 2010, 11:15 AM
Hey anarkhos,

I wrote such a tool a few days ago. Feel free to have a look:

http://code.google.com/p/smushit-cli/

Regards
Benjamin