Embed presentation

































![72 points-per-inchx [1+(1/3)]= 96 PPI](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-34-2048.jpg&f=jpg&w=240)


![“[In 2013, Intel sees theirproduct line] offer a higherresolution experience than atop-of-the-line 1080p HDTV.”http://liliputing.com/2012/04/intel-retina-laptopdesktop-displays-coming-in-2013.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-37-2048.jpg&f=jpg&w=240)













![Native speed test// @Modernizr's network-connection.jsconnection = navigator.connection || {type: 0 }, // polyfillisSlowConnection = connection.type == 3|| connection.type == 4| /^[23]g$/.test(connection.type);http://davidbcalhoun.com/2010/using-navigator-connection-android](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-51-2048.jpg&f=jpg&w=240)



![Filament .htaccess# Responsive Images# Mobile-First images that scale responsively and responsibly# Copyright 2010, Scott Jehl, Filament Group, Inc# Dual licensed under the MIT or GPL Version 2 licenses.# //Start Responsive ImagesRewriteEngine On# direct image requests to tempRewriteCond %{QUERY_STRING} full=(.*)&?RewriteRule (.*)rwd-router/.*.(jpe?g|png|gif|webp) $1%1 [L]# ignore trap for non-image requests, rewrite URL without trap segmentRewriteRule (.*)rwd-router/(.*)$ $1$2# //End Responsive Imageshttps://github.com/filamentgroup/Responsive-Images](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-55-2048.jpg&f=jpg&w=240)





































![Modernizr checkif(!Modernizr.svg){var images =document.getElementsByTagName("img");for(var i = 0; i < images.length; i++){var src = images[i].src.split(".");images[i].src = src[0] + ".png";}}http://stackoverflow.com/questions/12846852/svg-png-extension-switch](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-93-2048.jpg&f=jpg&w=240)










![Font-based icons<style>[data-icon]:before {font-family: 'icon-font';content: attr(data-icon);}</style><a href="http://example.com/cloud/save/"><span data-icon="C" aria-hidden="true"></span>Save to Cloud</a>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-104-2048.jpg&f=jpg&w=240)
























![<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 375231" preserveAspectRatio="xMidYMid meet" tabindex="-1"aria-label="aria label" role="img"title="title attribute"><title>Clown Car Technique</title><style></style><foreignObject><!--[if lte IE 8]><img src="../images/mobile-first.png" width="375"height="231" alt=""/><![endif]--></foreignObject></svg>http://codepen.io/teleject/pen/KlzBe](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-129-2048.jpg&f=jpg&w=240)

























This document summarizes Christopher Schmitt's presentation on adaptive images in responsive web design. The presentation covered:1. Using the browser width, screen resolution, and bandwidth to determine the appropriate image to serve through feature testing rather than browser sniffing. 2. Techniques for serving responsive images including using .htaccess files, the <picture> element, and JavaScript libraries like HiSRC that select images based on various tests.3. Workarounds for older browsers including using background-size: 100%, SVG images, and font-based solutions.

































![72 points-per-inchx [1+(1/3)]= 96 PPI](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-34-2048.jpg&f=jpg&w=240)


![“[In 2013, Intel sees theirproduct line] offer a higherresolution experience than atop-of-the-line 1080p HDTV.”http://liliputing.com/2012/04/intel-retina-laptopdesktop-displays-coming-in-2013.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-37-2048.jpg&f=jpg&w=240)













![Native speed test// @Modernizr's network-connection.jsconnection = navigator.connection || {type: 0 }, // polyfillisSlowConnection = connection.type == 3|| connection.type == 4| /^[23]g$/.test(connection.type);http://davidbcalhoun.com/2010/using-navigator-connection-android](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-51-2048.jpg&f=jpg&w=240)



![Filament .htaccess# Responsive Images# Mobile-First images that scale responsively and responsibly# Copyright 2010, Scott Jehl, Filament Group, Inc# Dual licensed under the MIT or GPL Version 2 licenses.# //Start Responsive ImagesRewriteEngine On# direct image requests to tempRewriteCond %{QUERY_STRING} full=(.*)&?RewriteRule (.*)rwd-router/.*.(jpe?g|png|gif|webp) $1%1 [L]# ignore trap for non-image requests, rewrite URL without trap segmentRewriteRule (.*)rwd-router/(.*)$ $1$2# //End Responsive Imageshttps://github.com/filamentgroup/Responsive-Images](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-55-2048.jpg&f=jpg&w=240)





































![Modernizr checkif(!Modernizr.svg){var images =document.getElementsByTagName("img");for(var i = 0; i < images.length; i++){var src = images[i].src.split(".");images[i].src = src[0] + ".png";}}http://stackoverflow.com/questions/12846852/svg-png-extension-switch](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-93-2048.jpg&f=jpg&w=240)










![Font-based icons<style>[data-icon]:before {font-family: 'icon-font';content: attr(data-icon);}</style><a href="http://example.com/cloud/save/"><span data-icon="C" aria-hidden="true"></span>Save to Cloud</a>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-104-2048.jpg&f=jpg&w=240)
























![<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 375231" preserveAspectRatio="xMidYMid meet" tabindex="-1"aria-label="aria label" role="img"title="title attribute"><title>Clown Car Technique</title><style></style><foreignObject><!--[if lte IE 8]><img src="../images/mobile-first.png" width="375"height="231" alt=""/><![endif]--></foreignObject></svg>http://codepen.io/teleject/pen/KlzBe](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fadaptive-imagesv16-131021133151-phpapp01%2f75%2fcssdevconf-Adaptive-Images-in-Responsive-Web-Design-129-2048.jpg&f=jpg&w=240)























