Smush.it presentations

Smush.it is getting more and more buzz all over the internets. Now there's even a song about it! Me and Nicole are pretty busy answering email, but a little slow to document the thing, I though I should at least shed some light on how the tool works by using some of the presentations.

What the tool does can be summarized in these steps:

  • Turn GIFs into PNG8. Results are reported only if there's a saving, the file name then becomes source.gif.png. Smush.it uses imagemagick to do the conversion and then pngcrush to crush the pngs
  • Crush PNGs using pngcrush
  • Strip JPEG metadata and make them progressive, using jpegtran
  • GIF animations: use gifsicle to remove pixels that don't change from one frame to another

This has been documented here on developer.yahoo.com together with the command line tools and options.

So all the tool does is run the appropriate command for each file type. Easy as that ;) All the tools mentioned are free open-source and available on all operating systems, including Windows.

Here are some presentations on slideshare that might explain things a little more:

  1. High-perf web sites - PHP Quebec Montreal, March 2008
  2. 7 mistakes in image optimization - O'Reilly's Velocity, SFO, June 2008
  3. Ajax Experience, Boston, earlier this week. Draft 1, Draft 2. The final and shortest version is below. It doesn't say much but the talk was just 5 minutes and included a demo. It's weird how little you can say in 5 minutes, I mean just "hello, my name, ... welcome to blah, blah..." is 20 seconds
Images - 7 mistakes
View SlideShare presentation or Upload your own. (tags: images optimization)

Happy smushing!

"Smush it! Smush it real good..." - hothardware.com ;)

This entry was posted on Sunday, October 5th, 2008 and is filed under images, performance, smush.it, tools. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


Get notification for future posts: follow me on Twitter or subscribe to my RSS feed

25 Responses to “Smush.it presentations”

  1. Indika Says:

    Smush it will also convert GIFs to PNGs for better optimization. It’s simply great and easy and has made my life much easier. Thanks to Yahoo team.

  2. MarcW Says:

    You might want to read John Harrington’s “Photo Business Blog” entry about this tool. He makes a good point that providing it, and using it, are very possibly in violation of the DMCA. Furthermore, giving people the ability to remove copyright information with a click, legal or not, is not very IP friendly. Perhaps you could tell it to skip the IPTC fields that contain copyright information?

  3. Stoyan Says:

    Hi Mark,

    Thanks for your comment!

    I’m happy to announce that smush.it now retains all the meta data, including copyright information.

    since the proper solution – stripping needless meta while keeping copyright info will be a little involved, as a temporary solution we’re keeping all the meta. The saving are no longer that impressive, but we’re be working on the right solution that helps performance and doesn’t harm artists.

    Best,
    Stoyan

  4. JeromeLapointe Says:

    @MarcW
    Frankly I think there’s something faulty about that piece of legislation… like much of the concept of the DRM. But it’s a good thing it was pointed out I guess.

    I do find Harrington’s tone to be inflammatory and acrimonious and it does very little to sensitise anyone to his issues either like much of the discourses that come from rights management entities… they don’t want your cooperation, just your compliance; cooperation would require a dialogue putting in evidence in how many ways their policies create problems for which they don’t want to find solutions. The direct Yahoo targeting (with the mention of their stock symbol) and the lawsuit allusions are a little overboard for me.

    Either way… I always knew there was metadata in images, I just never realised how much of it there was from my own images which I create myself with tools like photoshop! The metadata removal capability of your tool, for however how long it was available, shredded away a lot of the things I took for granted, one of them being that metadata weight was insignificant.

    I’d love to see some stats on how much bandwidth a day is used just for image metadata on the web, and then a breakdown of that usage (and how much of it is waste).

  5. The TASI Lightbox » Blog Archive » Smush it up Says:

    [...] week, one of the main features was that it could automatically strip metadata from JPEG files. This feature has now been temporarily withdrawn in light of some concern over the ease with which copyright information could be removed from an [...]

  6. hansel Says:

    your tool not working

  7. Stoyan Says:

    Thanks Hansel for letting me know.

    The tool hit the limit of 32000 subdirectories that you can have in a directory, it creates a new subdir for every smush.it “session” meaning every page you smush or all the files you upload or paste URLs without refreshing the smush.it page.

    Anyway, I created a new dir to store the results, so it’s back to normal.

    Thanks again for letting me know!

  8. Boštjan Says:

    Stoyan: I hope that you delete subdirectories after some time?

  9. Stoyan Says:

    Boštjan – currently not, waiting on me to write a script of some sort to get some stats and then a cron job to delete all files older than, say 1 hour. But for now, don’t upload anything private, just in case. Sorry about that, in the rush to get this tool functional, I didn’t have time for the proper housekeeping stuff. Will do asap.

  10. jim Says:

    Great tool (looking forward to the ‘strip all Meta’ option), but I have a bug, maybe…
    If I enter a URL with a few ? parameters in the upload box it gets smushed, if I try and send one via the api it only seems to show the first parameter in the ‘src’.

    eg:
    http://smush.it/ws.php?img=http://maps.google.com/staticmap?zoom=14&size=300×180&format=png8&markers=-35.282989,174.090151,blue&key=ABQIAAAAAGNZ8K1XCXT4L2hBGT3v0RQYK8a9jbuifQNkRTaHnDgUOS560BQ8c753CjzFvP0H0OJGT18WHlPDqQ&sensor=false

  11. jim Says:

    Stoyan, am I right in thinking the only way of making cross-browser semi-transparent png8s is with fireworks? If so, that would be an excellent addition to your tool :)

  12. grosser Says:

    http://github.com/grosser/smusher/

    commandline tool to automatically optimize whole folders of images

  13. Bilder komprimieren, Formatwahl und Smush.it | Chris im Netz - Software, Hardware, Tutorials und mehr.. Says:

    [...] als die Ausgangsdatei ist. Ich dachte mir das geht nun wirklich nicht und habe mich umgeschaut. Bei Phpied habe ich die Antwort gefunden und sie heißt Smush.it für WordPress. Smush.it ist ein kleines [...]

  14. Julian Says:

    Hi Smush it looks good but no matter what web site I go to it simply opens a blank page when I click on the smush it icon. Is Smush.it broken?

  15. John Says:

    Not very impressed….installed the extension for Firefox and I now have the useless icon in the status bar. I say useless because everytime I go to “smush” a website’s images all I get is a new blank window at the address of “www.smushit.com”

  16. Stoyan Says:

    hey John,

    Sorry about that, the extension has been discontinued by Yahoo, because it’s now part of YSlow.

    but you can still use it, what you need to do is go to about:config search for “smush” and change the URL from http://smushit.com to either http://www.smushit.com/ysmush.it/ (hosted by Yahoo and stable) or the old one http://smush.it/ (the old host, down from time to time). Either one should work.

  17. Callicott Says:

    Such a good article. Her should receive credit for it. Thanks

  18. Than Says:

    Great post agree with writer

  19. Whitman Says:

    Good article. Totally agree with the writer. Keep it up.

  20. Moin Says:

    smush.it’s URL smushing isn’t working since yesterday. Could you let the guys maintaining it know? Uploading images and smushing works.

  21. Closson Says:

    Good post. Nice job

  22. Riebau Says:

    Good article. Will visit again. Thanks

  23. Fronk Says:

    Awesome point of view. Will come again. Cheers

  24. Delosreyes Says:

    Good blog!
    Thanks

  25. Ruland Says:

    I have blog for iPhone Freeware apps you can download everything that you want for free!

Leave a Reply