• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Image optimization pipeline
 

Image optimization pipeline

on

  • 3,340 views

Images are the one of the oldest items on the web (right after HTML) and still so little has changed since we started to use them. That's if you don't count lots of creative talent that went into ...

Images are the one of the oldest items on the web (right after HTML) and still so little has changed since we started to use them. That's if you don't count lots of creative talent that went into creating them, so much in fact that it created the web as we know now, rich, shiny and full of marketing potential.

That being said, images on our websites are the largest payload shifted back and forth across the wires of the net taking big part in slowing down pages. Still we can safely assume that we are going to have only more images and they will only grow bigger, along with the screen resolutions on user computers.

If you want to stop slowing down your pages and reducing user experience, it's time to take images seriously and implement image processing pipeline within your organization!

Statistics

Views

Total Views
3,340
Views on SlideShare
3,205
Embed Views
135

Actions

Likes
3
Downloads
17
Comments
0

6 Embeds 135

http://www.speakerforce.com 71
http://www.mediawikiwidgets.org 44
https://twitter.com 11
https://www.linkedin.com 5
http://www.linkedin.com 3
https://twimg0-a.akamaihd.net 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Image optimization pipeline Image optimization pipeline Presentation Transcript

    • BEFORE AFTERIMAGE OPTIMIZATION PIPELINE
    • SERGEY CHERNYSHEV • Work at truTV/Turner • Organize NY Meetup • Developed ShowSlow and a few other tools @SergeyChe, @PerfPlanet
    • WHY FASTER?http://blog.kissmetrics.com/loading-time/
    • websiteoptimization.com
    • WHY IMAGES?• Largest Payload (63%)• Grew 21% in size in 2011• Main connection blocker• The visual indicator 598K• We will only get more of them
    • AUTOMATE• Extra step in photo editors workflow• Not obvious to photo editors, they shouldnt care• User Generated Content cant be manually processed
    • WHERE TO AUTOMATE?• PhotoShop scripting• CMS hooks• Version control commit hooks• Application logic (especially for UGC)• File system monitors
    • SMUSHING (lossless compression)• Removes meta-data• Preserves quality• Saves more then you think!• Kudos to Stoyan & Nicole META-DATA
    • LOSSY COMPRESSION Increase compression until quality visibly degrades 100% 90% 80% 70% 60% 50% 40% 30% 20% 10%
    • LOSSY COMPRESSION But it heavily depends on size and content of an image 100% 90% 80% 70% 60% 50% 40% 30% 20% 10%
    • LOSSY COMPRESSION AUTOMATION ImgMin
    • CSS SPRITES• Games are cool!• Reduces latency cost• SpriteMe.org• Dont overdo it• We need automation for this!
    • RESIZE TO SIZE Responsive Designhttp://blog.braintraffic.com/2012/01/content-strategy-and-responsive-design/
    • RESIZE TO SIZE Preserving Proportions• Thumbnails!• Never resize in the browser• Createa map of sizes for each image type Changing Proportions• Changing proportions is hard• Do not resize on the fly
    • LOAD LATER
    • LOAD LATER
    • LOAD LATER<SPAN CLASS="POSTLOAD" DATA-URL="/AWESOME.JPG" DATA-ALT="AWESOME PIC"></SPAN><IMG SRC="/AWESOME.JPG" ALT="AWESOME PIC"/>
    • REWRITE URLS<IMG SRC="<?=U(/AWESOME.JPG) ?>" ALT="AWESOME PIC"/>• Enabling/disabling and • Caching forever moving CDNs (including SSL) • Data URIs?• Domain sharding• Different setups in DEV/QA/PROD
    • CACHE FOREVER"POINTLESS 304S"
    • CACHE FOREVERFar-future Expires and Cache-Control headers
    • CACHE FOREVER Far-future Expires and Cache-Control headers Finger-print the URL with hash of the content
    • THANK YOU!@SergeyChe@PerfPlanetSergey.Chernyshev@turner.com