Image optimization – 7 mistakes

The slides from my talk at the Velocity conference

» Download

This entry was posted on Thursday, June 26th, 2008 and is filed under images, performance. 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

21 Responses to “Image optimization – 7 mistakes”

  1. João Prado Maia’s Weblog » Velocity conference: great content, weird format Says:

    [...] Good content on image optimization from Stoyan Stefanov, something most people often forget. We have a build system that does this automatically, but we should also have something in there to make sure we use PNG8s instead of GIFs whenever possible. Added to my TODO list. [...]

  2. 云谦(Chencheng)的博客 » PPT翻译:图片优化的7大错误 Says:

    [...] 资源链接:原文,原PPT,译PPT [...]

  3. jake Says:

    Interesting stuff – those are certainly some big numbers. Doesn’t setting an expires: time far in the future for static images reduce the gains you’d get from turning your gifs into pngs? Also, I suspect that the page weight for YouTube doesn’t include the easy-to-overlook contribution of the video file…

  4. Lea Verou Says:

    Thanks! Useful presentation!
    It says though that PNG8 supports alpha transparency, is that true?

  5. Stoyan Says:

    Hi Lea, thanks. PNG8 does support alpha transparency. Full alpha in Firefox, Opera, Safari, IE7+ and GIF-like transparency in IE6 and earlier
    You can check this article, pretty useful stuff http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/
    Unfortunately, I don’t think Photoshop allows you to do this, but Fireworks does.

    Jake, Expires header does help, but as Yahoo research shows empty cache experience happens more often than we think, more specifically 20% of all page views and 50% of all page visits http://yuiblog.com/blog/2007/01/04/performance-research-part-2/. About youtube, I don’t know, I looked at the pies in YSlow stats. The FLV is streamed, so maybe it’s not included, because YSlow/Firebug cannot tell the size of streamed stuff.

  6. Boštjan Says:

    PNG8 doesn’t support animations, does it? well, I almost never use them, i’m just interested in it.

  7. Lea Verou Says:

    Thanks so much!
    I never thought it was possible because Photoshop’s & Illustrator’s Save for Web only allow alpha transparency for PNG24s.

  8. Stoyan Says:

    Hi Boštjan, PNG animation do exist (here: http://www.libpng.org/pub/png/png-sitemap.html#animation, but it’s not widely supported, so you do need gif when you want to do animations

  9. Web 0.2 » Blog Archive » Image optimizationfor web: common mistakes Says:

    [...] Stoyan from Yahoo! presents some surprising facts. [...]

  10. Web 0.2 » Blog Archive » Image optimization for the web: common mistakes Says:

    [...] Stoyan from Yahoo! presents some surprising facts. [...]

  11. Performance web » Archive du blog » Optimisation d’images - 7 erreurs Says:

    [...] Stoyan Stefanov, de l’équipe Performance de Yahoo! a donné une présentation fin juin sur l’optimisation des images. J’ai déjà parlé de plusieurs choses, il en rajoute d’autres, avec des chiffres percutants et des explications concices. [...]

  12. Performance web » Archive du blog » Optimisation JPEG Says:

    [...] Je vous avais rapidement parlé de pngcrush pour optimiser les images PNG, sans aucune perte de qualité. Stoyan Stefanov nous propose jpegtrans dans sa dernière présentation sur l’optimisation des images. [...]

  13. phpied.com » Blog Archive » Installing pngcrush at dreamhost Says:

    [...] online image optimizer, using the free command line tools I talked about at PHP Quebec, Montreal, O’Reilly’s Velocity and the Yahoo! Performance pages. The tool will be free, of course, and hosted on Dreamhost. OK, [...]

  14. Broadcasting Adam » 8 Tips for Lightning Fast Websites Says:

    [...] Links: 7 Image Optimization Mistakes [...]

  15. 图片无损优化 « Kejun’s Blog Says:

    [...] Optimization – 7 mistakes (and how to correct them)’, http://www.phpied.com/image-optimization-7-mistakes/ [...]

  16. stoimen Says:

    Hi Stoyan,

    after reading the last months everything you’ve written about image optimization, and Nicole Sullivan’s presentations on YUI Developer Theater, I began using PNG8 more and more.
    However the problem is that only Fireworks can export such semi-transparent PNG8, which is kind of a restriction. I saw that the uploaded .gif files on smush.it are returned as 8 bit PNGs, but they are with full transparent pixels, which is normal when you convert them from a GIF.
    Here’s a link of a pngquant : http://www.libpng.org/pub/png/apps/pngquant.html which pretends to export semi transparent PNG8 and it’s fully open source.
    I hope that may be the missing step between PNG8 and noFireworks developers.

  17. Michael Garmahis Says:

    Check out ultimate guide How to Optimize Images for Web with all tools and techniques for PNG, JPEG and GIF optimization in one place. Free Photoshop action for download is included.

  18. 让我们一起讨论如何把简单的事做好 « Kejun’s Blog Says:

    [...] 图片格式上除了有帧动画的用gif外,其它都用png8/128色。png无损优化的效果确实好。更多关于图片优化的内容可以关注Stoyan Stefanov的文章。 [...]

  19. Bryan Moore Creative Design Says:

    Good advice. I recently found that using Fireworks for optimization is better than Photoshop. You get a smaller file size with better quality. It adds up when thinking of bandwidth.

  20. Commercial Property Says:

    Commercial Property…

    [...]Image optimization – 7 mistakes / Stoyan’s phpied.com[...]…

  21. Placement Companies India Says:

    Image optimization is using the most compressed yet visually acceptable image in the proper file format for the specific role of the image.Optimizing images for the web is a tricky business. You have to get the right balance between file size and picture quality.

Leave a Reply