velocity 2013: extreme image optimization

19
©2013 Akamai Faster Forward TM EXTREME IMAGE OPTIMIZATIONS: WEBP AND JPEG XR Ido Safruti, Akamai [email protected]

Upload: akamai-technologies

Post on 11-Jun-2015

569 views

Category:

Technology


0 download

DESCRIPTION

In last 4 years, two new image formats were added to the web technology arsenal -- WebP & JPEG XR. These image formats are far superior to their predecessors, but unfortunately are only supported by very specific browsers, and aren't always easy to generate. Akamai has recently added support for these image formats, and learned a lot in the process. In this short talk, Ido will explain more about these formats and share some of our experience working with them.

TRANSCRIPT

Page 1: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

EXTREME IMAGE OPTIMIZATIONS: WEBP AND JPEG XR

Ido Safruti, Akamai

[email protected]

Page 2: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Images make up 61% of Page Bytes

http://httparchive.org/interesting.php#bytesperpage

Page 3: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Images make up 65% of Page Bytes on Mobile

http://mobile.httparchive.org/interesting.php#bytesperpage

Page 4: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Image Bytes grew 31% in the last year

http://httparchive.org/trends.php#bytesImg&reqImg It’s not more images,

It’s BIGGER images

Page 5: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

There is much to gain in image optimization

And yet…

Page 6: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Common Image formats – hall of fame

Lossless:

GIF – 1987

PNG – 1996

Lossy:

JPEG – 1992

Page 7: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Supporting a new image format is hard!

Ilya Grigorik:Deploying new image formats on the Web is HARD (but doable)

Page 8: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

2 new formats

WebP (2011)

JXR: JPEG eXtended Range (2009)

15+ years worth of technology

Lossless, Lossy,

supports alpha transparency both with lossless and lossy

Supported by Akamai today!

Page 9: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Improvement over JPEG

Sample of 2308 Images from top 100 sites’ homepage

* Varies per image – some images may be larger than JPEG

Similar improvement measured for lossless over PNG

Page 10: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Web Site Performance

Page 11: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Its not the Size That Matters,

It’s How You Use It

http://www.flickr.com/photos/patries71/1250553251/

Page 12: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Perceived Performance

JPEG XR supports progressive images

WebP does not (currently)

Page 13: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Page 14: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Officially: Chrome 9, IE 9, Opera 11.10

Page 15: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

WebP + JPEG XR Coverage

Supported by:- IE 10+

- In theory IE 9 too

- Chrome 23+- In theory 9+

- Android 4+- Opera 12+- Opera Mobile 11.1+

WebP –or– JPEG XR Supported on ~ 50% of clients

Chrome; 19.5

Android Webkit; 5.4

Opera Mini; 1Chrome Mobile; 0.7

Opera; 0.3

IE 9; 13.2258

IE 8; 10.1706

IE 10; 9.6882

IE 7; 6.1908 Other; 0.9246

Page 16: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Dealing with interoperability ...

Link sharing

Save As

http://news.cnet.com/8301-1023_3-57580664-93/facebook-tries-googles-webp-image-format-users-squawk/

April 22, 2013

Page 17: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

SUMMARY

Page 18: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

Summary

- There is much to gain by applying WebP/JXR- One needs to apply this with care, only where appropriate!

- Supported browsers- When optimization is better

- Interoperability comes in many flavors – prepare for them- Size isn’t the only thing that matters: progressive gives a

better perceived performance

- More in the performance calendar (Dec 2013)

Page 19: Velocity 2013: Extreme Image Optimization

©2013 AkamaiFaster ForwardTM

EXTREME IMAGE OPTIMIZATIONS

Ido Safruti

[email protected]

Thank You! Questions?