• Smusher: Lossless and Recursive Image Optimizer

    mojombo 26 Jan 2009

    Ever wanted to run a single command in your website’s images directory and have every image losslessly optimized (compressed) in place? Now you can, with the smusher gem. I just ran it on our images dir and found an overall savings of 10%. If you’re not as rigorous as I am about saving images from Photoshop with good compression, the savings would be even greater!

    This gem uses the smush.it service. I highly recommend this tool. Great job, grosser!

  • Comments

    grosser Tue Jan 27 00:53:41 -0800 2009

    your welcome!

    i got addicted when i compressed some of the fam fam icons to merely 7% of their original size :D

    and i do not have to worry about our designers not properly exporting their jpgs/pngs…

    obeattie Wed Jan 28 01:57:44 -0800 2009

    Being a Python guy, I couldn’t resist creating a Python version (I needed to use import it directly to use in a Fabric script)… just in case anyone’s interested.

    pseudonym Fri Jan 30 11:59:08 -0800 2009

    I don’t know about JPEG, but what’s wrong with “find . -name ‘*.png’ -exec optipng -o7 {} +”? I guess it’s not enterprisey enough.

    Please log in to comment.