views:

605

answers:

4

Sometimes I use Smush.it via the YSlow Firefox plugin to non-destructively reduce the file size of JPG images. Is there an offline version available that runs on Windows? And if not is there an alternative?

The reason I'd like an offline version is that I'd like to optimize images before I deploy them. Currently Smush.it accepts only public facing URLs for images or a web page (via YSlow) and can't access my internal network. That means I have to deploy, optimize, replace images and deploy again. I'd really like to deploy the optimized images on the first deploy.

Update: Here's a very similar question.

A: 

Perhaps ImageOptim will do what you want?

ImageOptim is a front-end (GUI) for set of tools for optimisation of PNG/JPEG images and GIF animations.

Nifle
That looked promising then I read the Mac OS X requirement. I'll update my question.
Jonathon Watney
+1  A: 

You might look at JPGTran using the -optimize attribute. You can find information for it http://sylvana.net/jpegcrop/jpegtran/ it works pretty well and is simple.

meme
A: 

You can use puny png to upload your images. http://www.gracepointafterfive.com/punypng/

jeremysawesome
+1  A: 

See this:

http://github.com/thebeansgroup/smush.py

It still needs testing, but it'd serve as a base instead of having to develop something from scratch.

timmy
Thanks. Looks promising so I'll keep an eye on it. The Python >= 2.7 is getting in the way at the moment though.
Jonathon Watney