SlideShare a Scribd company logo
Practical
Responsive
Images
http://unsplash.com/
A picture is worth a thousand words…
http://unsplash.com/
…but the cost is much greater
http://httparchive.org
http://en.wikipedia.org/wiki/Wikipedia:Size_comparisons
213,000
Words
1249kB
Images
Average Bytes per Page by
Content Type (April 2015):
If 1kB is 1024 ASCII characters
6
characters/word
An estimated average word length
is five characters, plus a space
(1249kB * 1024) / 6 = ~213,160
(including HTML)
(of a total: 1950kB)
50-60
img requests
per page
Average image
size for JPEG
was 30kB
The cost of images
Pride and Prejudice
contains approximately
122,000
words
http://www.searchlit.org/novels/460.php
The cost of images
The cost of images
The Value of Images
http://www.thoughtmechanics.com/the-importance-of-images-in-web-design/
“Pictures have the power to create an
emotional response in the audience, which
is worth its weight in gold. An image can also
communicate instantly, as our brain can
interpret them much quicker than text.”
thoughtmechanics.com
“If I’d have to pick one single thing that
would sell a product online, it’s images.”
Peep Laja (Conversion Coach)
The Value of Images
http://www.jeffbullas.com/2012/05/28/6-powerful-reasons-why-you-should-include-images-in-your-marketing-infographic/
In an ecommerce site, 67% of consumers say the
quality of a product image is “very important” in
selecting and purchasing a product
http://www.jeremysaid.com/the-jaw-dropping-effect-that-images-can-have-on-your-conversion-rates/
Headshots of customer service reps on a web
page can boost conversion rates by 20%
Articles with images get 94% more total views
Including a Photo and a video in a press
release increases views by over 45%
60% of consumers are more likely to
consider or contact a business when an
image shows up in local search results
In some studies
10-15x
more viewers look at
and engage with the
content when the
model is looking or
gesturing towards it
Images are powerful
http://thinkeyetracking.com/2009/06/cuing-customers-to-look-at-your-key-messages/ Photo courtesy of Christian Hambly
In some studies
10-15x
more viewers look at
and engage with the
content when the
model is looking or
gesturing towards it
Images are powerful
Images are engaging
http://www.eye-tracking.net/examples-of-eye-tracking-tests/
Eye tracking studies have shown that,
as human beings, we give the most
attention to other human faces.
A lot has changed since 1993
Guess the year?
1993 was also the year that the
<img > tag was first proposed
and has remained mostly
unchanged …
…whereas the rest of the web-
world change quite a bit!
http://info.cern.ch/hypertext/WWW/TheProject.html
The first ever website.
August 6, 1991
Publish date:
In 1996
The closest you can
experience this
today is probably
Hotel WiFi
Text was pretty popular…
56kbps = 7kBps 1850kB would take 265 second = 4.5 minutes
Bandwidth
A plethora of devices
Mobile adoption
http://www.creativebloq.com/netmag/how-web-design-and-mobile-design-are-becoming-same-thing-81412610
“Mobilegeddon”
21st April 2015 : Google update to its search
algorithms which would begin to factor in a website’s
“mobile-friendliness” as a ranking signal
http://techcrunch.com/2015/04/21/googles-mobile-friendly-update-could-impact-over-40-of-fortune-500/#.8gqeuh:DxeE
http://googlewebmastercentral.blogspot.co.uk/2015/04/rolling-out-mobile-friendly-update.html
https://www.google.co.uk/webmasters/tools/mobile-friendly/
Foreground images at 100%
Raster image options
Background-images via CSS
.item_visuals img{
width: 100%;
}
……does nothing for payload.
.banner {
background-image: url('banner_750px.jpg');
}
@media (min-width: 750px)
{
.banner {
background-image: url('banner_1500px.jpg');
}
}
…use alternatives
to raster images
if you can…….
SVG
http://icomoon.io/
using <noscript>, custom data- attributes and .insertAfter($(this))
http://allbs.co.uk/2012/05/11/responsive-images-intro/
Javascript Image Replacement
<script>
var areawidth = $(window).width();
var widthDownTosmall = 600;
var widthUpToLarge = 1100;
$('noscript[data-imageid]').each(function(){
var imageBase=“image/path";
var imageid = $(this).attr("data-imageid");
var imageSmall = $(this).attr("data-small-imageid");
var imageLarge = $(this).attr("data-large-imageid");
if (areawidth <= widthDownTosmall) {imageid = imageSmall; }
if (areawidth >= widthUpToLarge) {imageid = imageLarge; }
$('<img src="' + imageBase + imageid + '"/>').insertAfter($(this));
});
</script>
<noscript data-imageid=‘bag.jpg’ data-small-imageid=‘bag_small.jpg’ data-large-imageid=‘bag_large.jpg’>
<img src=‘bag_small.jpg’ alt='Bag' />
</noscript>
<picture>
srcset/sizes attributes
Enter our heroes:
http://responsiveimages.org/
Responsive Images Community Group
Nitty gritty
<picture>
<source media="(min-width: 40em)" srcset="apple-big.jpg 1x, apple-big-hd.jpg 2x">
<source srcset="apple-small.jpg 1x, apple-small-hd.jpg 2x">
<img src="apple-fallback.jpg" alt="How do you like them apples?">
</picture>
<img src="apple-fallback.jpg"
srcset="apple-big.jpg 1000w, apple-med.jpg 640w, apple-small.jpg 320w"
sizes="(min-width: 40em) 50vw, 100vw"
alt="How do you like them apples?" />
srcset x-descriptor (Device Pixel Ratio)
http://respimg.es/eg/pri2
<img srcset="Butterfly-600-retina.jpg 2x"
src="Butterfly-600-standard.jpg"
width="600" alt="text" />
standard image ~ 34KB
‘retina’ image ~ 113KB
srcset w-descriptor
without sizes (assumes 100vw)
<img
srcset=“Apple_800.jpg 800w,
Apple_1200.jpg 1200w"
src=“Apple_fallback.jpg”
alt=“How do you like them Apples?"/>
</div>
sizes attribute : vw (% viewport width)
<img
src=“Apple_fallback.jpg” alt="text"
sizes="(min-width: 640px) 50vw, 100vw"
srcset=“Apple_400.jpg 400w,
Apple_600.jpg 600w,
Apple_800.jpg 800w,
Apple_1200.jpg 1200w" />
</div>
Viewport width
If width ≥ 640px then use 50vw
i.e. Calculations use 50% of width
50%
Within the fluid context of responsive websites,
the restrictive nature of the <img> element,
and lack of CSS controls for foreground
images, has not been the elephant in the
room. It's just been the elephant that we
couldn't agree what to do with….
Picture element : Art Direction
http://respimg.es/eg/pri5
<picture>
<source media="(max-width: 500px)"
srcset="Apples-slices.jpg, Apples-slices-2x.jpg 2x" />
<source media="(max-width: 780px)"
srcset="Apples-crop-500.jpg 500w,
Apples-crop-780.jpg 780w" />
<source srcset="Apples-780.jpg 780w,
Apples-1000.jpg 1000w,
Apples-1800.jpg 1800w"/>
<img src="Apples-fallback.jpg" alt="text" />
</picture>
Picture element : Art Direction
http://respimg.es/eg/pri5
Use Case 2: Crop to point of interest (Art Direction)
Use Case 3: Device Orientation
srcset="landscape_variant.jpg" media="(min-
width: 400px) and (orientation: landscape)"
srcset="portrait_variant.jpg" media="(min-width:
400px) and (orientation: portrait)"
http://responsiveimag.es/Practical_Example_3.html
Picture element: Image Format : webp/svg
<picture>
<source type="image/webp" srcset="Apples_600.webp" >
<source type="image/vnd.ms-photo" srcset="Apples_600.jxr" />
<img src="/Apples_600.jpg" alt="text" />
</picture>
http://respimg.es/eg/pri6
(As of : April 2015)
Can I Use
http://caniuse.com/#search=srcset http://caniuse.com/#search=picture
A responsive image polyfill.
For today, and future-legacy-browsers
picturefill
http://scottjehl.github.io/picturefill/
Developed and maintained by Filament Group
<script>
document.createElement( "picture" );
</script>
<script src="picturefill.js" async></script>
(scaling / CDN)
Where do we get all those image variants?
Batch Statics
v
Server-side
image manipulation
Build Your Own
v
SaaS
image.jpg?w=400&qlt=70&unsharp=0,1,1,7
At-request-time image variants:
Control width, quality, sharpening….
Dynamic Imaging Systems
additional benefits include 

“apparent image requests”
for SEO context:
Dynamic Imaging Systems
/B473P_AB123_89_4UVWL/apple-ipad-mini-3-64gb-wi-fi-gold.jpg
Avoiding Forking our Content
Viewport width
50%
Within the fluid context of responsive websites,
the restrictive nature of the <img> element,
and lack of CSS controls for foreground
images, has not been the elephant in the
room. It's just been the elephant that we
couldn't agree what to do with….
Combining the two
<img
src="http://images.amplience.com/i/benco/Apple2.jpg?w=400&qlt=80"
alt="How do you like them Apples?"
sizes="(min-width: 640px) 50vw, 100vw"
srcset="http://images.amplience.com/i/benco/Apple_Row2.jpg?w=200&qlt=80&unsharp=0,1,1,7 200w,
http://images.amplience.com/i/benco/Apple_Row2.jpg?w=400&qlt=80&unsharp=0,1,1,7 400w,
http://images.amplience.com/i/benco/Apple_Row2.jpg?w=600&qlt=80&unsharp=0,1,1,7 600w,
http://images.amplience.com/i/benco/Apple_Row2.jpg?w=800&qlt=80&unsharp=0,1,1,7 800w,
http://images.amplience.com/i/benco/Apple_Row2.jpg?w=1200&qlt=80&unsharp=0,1,1,7 1200w" />
</div>
Combining the two
<picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source srcset="http://images.amplience.com/i/benco/Apple_Row2.jpg?
w=1400&qlt=80&unsharp=0,1,1,7" media="(min-width: 1200px)">
<source srcset=“http://images.amplience.com/i/benco/Apple_Row2.jpg?
w=1200&qlt=80&unsharp=0,1,1,7" media="(min-width: 1050px)">
<source srcset=“http://images.amplience.com/i/benco/Apple_Row2.jpg?
pcrop=700,0,2500,800&w=950&qlt=80&unsharp=0,1,1,7" media="(min-width: 850px)">
<source srcset=“http://images.amplience.com/i/benco/Apple_Row2.jpg?
pcrop=1300,0,1900,800&w=850&qlt=80&unsharp=0,1,1,7" media="(min-width: 600px)">
<source srcset=“http://images.amplience.com/i/benco/Red_And_Green_Apples2.jpg?
w=600&qlt=80&unsharp=0,1,1,7">
<!--[if IE 9]></video><![endif]-->
<img srcset="http://images.amplience.com/i/benco/Apple2.jpg?w=600&qlt=80"
alt="How do you like them Apples?">
</picture>
<picture>
srcset
/
Dynamic
Imaging
System
Practical
Responsive
Images
=+
@bseymour
respimg.es
Thank you
benseymour.com
https://www.codeclub.org.uk/
http://www.stemnet.org.uk/
https://www.codeclub.org.uk/

More Related Content

Viewers also liked

Panex Resources Giro Goldfield Presentation (Feb 2014)
Panex Resources Giro Goldfield Presentation (Feb 2014)Panex Resources Giro Goldfield Presentation (Feb 2014)
Panex Resources Giro Goldfield Presentation (Feb 2014)
Commodity Investor
 
Cardiovasculars ss
Cardiovasculars  ssCardiovasculars  ss
Cardiovasculars ss
ganato2226
 
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
Sacha Bruttin
 
Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015
Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015
Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015
eCommerce Institute
 
Market Access - Getting ready for Personalized Medicine!
Market Access - Getting ready for Personalized Medicine!Market Access - Getting ready for Personalized Medicine!
Market Access - Getting ready for Personalized Medicine!
executiveinsight
 
Multi channel workshop presentation
Multi channel workshop presentationMulti channel workshop presentation
Multi channel workshop presentation
MintTwist
 
Desafios web 2.0
Desafios web 2.0Desafios web 2.0
Desafios web 2.0
Monica Zega de Krutli
 
15 guia via de administracion de medicamentos
15 guia via de administracion de medicamentos15 guia via de administracion de medicamentos
15 guia via de administracion de medicamentos
Alex Suarez Lastra
 
Aiepi
AiepiAiepi
Zadig & Voltaire
Zadig & VoltaireZadig & Voltaire
Zadig & Voltaire
Vincent Bogaers
 
Xenon(2)
Xenon(2)Xenon(2)
Xenon(2)
mamen
 
Facts about Vertical Growing
Facts about Vertical GrowingFacts about Vertical Growing
Facts about Vertical Growing
Rob Smart
 
2012 coaching manual_for_web
2012 coaching manual_for_web2012 coaching manual_for_web
2012 coaching manual_for_web
ABYSA
 
Programa curso de postgrado medicina nutricional
Programa curso de postgrado medicina nutricionalPrograma curso de postgrado medicina nutricional
Programa curso de postgrado medicina nutricional
Medicina Córdoba
 
Growth Hacking
Growth HackingGrowth Hacking
Growth Hacking
Mattan Griffel
 

Viewers also liked (15)

Panex Resources Giro Goldfield Presentation (Feb 2014)
Panex Resources Giro Goldfield Presentation (Feb 2014)Panex Resources Giro Goldfield Presentation (Feb 2014)
Panex Resources Giro Goldfield Presentation (Feb 2014)
 
Cardiovasculars ss
Cardiovasculars  ssCardiovasculars  ss
Cardiovasculars ss
 
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
 
Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015
Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015
Presentación Francisco Irarrázaval​, - eCommerceForum Moda Santiago 2015
 
Market Access - Getting ready for Personalized Medicine!
Market Access - Getting ready for Personalized Medicine!Market Access - Getting ready for Personalized Medicine!
Market Access - Getting ready for Personalized Medicine!
 
Multi channel workshop presentation
Multi channel workshop presentationMulti channel workshop presentation
Multi channel workshop presentation
 
Desafios web 2.0
Desafios web 2.0Desafios web 2.0
Desafios web 2.0
 
15 guia via de administracion de medicamentos
15 guia via de administracion de medicamentos15 guia via de administracion de medicamentos
15 guia via de administracion de medicamentos
 
Aiepi
AiepiAiepi
Aiepi
 
Zadig & Voltaire
Zadig & VoltaireZadig & Voltaire
Zadig & Voltaire
 
Xenon(2)
Xenon(2)Xenon(2)
Xenon(2)
 
Facts about Vertical Growing
Facts about Vertical GrowingFacts about Vertical Growing
Facts about Vertical Growing
 
2012 coaching manual_for_web
2012 coaching manual_for_web2012 coaching manual_for_web
2012 coaching manual_for_web
 
Programa curso de postgrado medicina nutricional
Programa curso de postgrado medicina nutricionalPrograma curso de postgrado medicina nutricional
Programa curso de postgrado medicina nutricional
 
Growth Hacking
Growth HackingGrowth Hacking
Growth Hacking
 

Similar to Ben Seymour "Practical Responsive Images"

OSCAL: Free and Open Source Tools for Image and Video Performance
OSCAL: Free and Open Source Tools for Image and Video PerformanceOSCAL: Free and Open Source Tools for Image and Video Performance
OSCAL: Free and Open Source Tools for Image and Video Performance
Doug Sillars
 
Practical Responsive Images : MK Geek Night
Practical Responsive Images : MK Geek NightPractical Responsive Images : MK Geek Night
Practical Responsive Images : MK Geek Night
Ben Seymour
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011
Epitome Solutions Ltd
 
Responsive images
Responsive imagesResponsive images
Responsive images
Paul Stonier
 
Responsive Images in the Real World - presented at JavaScript Open 2015
Responsive Images in the Real World - presented at JavaScript Open 2015Responsive Images in the Real World - presented at JavaScript Open 2015
Responsive Images in the Real World - presented at JavaScript Open 2015
Morten Rand-Hendriksen
 
Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)
Future Insights
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
Vitaly Friedman
 
Edi react fastandbeautiful
Edi react fastandbeautifulEdi react fastandbeautiful
Edi react fastandbeautiful
Doug Sillars
 
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
Aidan Foster
 
Lazy load Website Assets
Lazy load Website AssetsLazy load Website Assets
Lazy load Website Assets
Chris Love
 
Next Steps in Responsive Design
Next Steps in Responsive DesignNext Steps in Responsive Design
Next Steps in Responsive Design
Justin Avery
 
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Andy Davies
 
Spectrum 16 pmc 16 - preparing legacy projects for responsive design
Spectrum 16   pmc 16 - preparing legacy projects for responsive designSpectrum 16   pmc 16 - preparing legacy projects for responsive design
Spectrum 16 pmc 16 - preparing legacy projects for responsive design
Neil Perlin
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
Janet Huang
 
Responsive images, an html 5.1 standard
Responsive images, an html 5.1 standardResponsive images, an html 5.1 standard
Responsive images, an html 5.1 standard
Andrea Verlicchi
 
Delivering Responsive Images
Delivering Responsive Images Delivering Responsive Images
Delivering Responsive Images
Cloudinary
 
Stc 2015 preparing legacy projects for responsive design - design issues
Stc 2015   preparing legacy projects for responsive design - design issuesStc 2015   preparing legacy projects for responsive design - design issues
Stc 2015 preparing legacy projects for responsive design - design issues
Neil Perlin
 
Hackference
HackferenceHackference
Hackference
Doug Sillars
 
Proactive Responsive Design
Proactive Responsive DesignProactive Responsive Design
Proactive Responsive Design
Nathan Smith
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
mikeleeme
 

Similar to Ben Seymour "Practical Responsive Images" (20)

OSCAL: Free and Open Source Tools for Image and Video Performance
OSCAL: Free and Open Source Tools for Image and Video PerformanceOSCAL: Free and Open Source Tools for Image and Video Performance
OSCAL: Free and Open Source Tools for Image and Video Performance
 
Practical Responsive Images : MK Geek Night
Practical Responsive Images : MK Geek NightPractical Responsive Images : MK Geek Night
Practical Responsive Images : MK Geek Night
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011
 
Responsive images
Responsive imagesResponsive images
Responsive images
 
Responsive Images in the Real World - presented at JavaScript Open 2015
Responsive Images in the Real World - presented at JavaScript Open 2015Responsive Images in the Real World - presented at JavaScript Open 2015
Responsive Images in the Real World - presented at JavaScript Open 2015
 
Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
 
Edi react fastandbeautiful
Edi react fastandbeautifulEdi react fastandbeautiful
Edi react fastandbeautiful
 
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
 
Lazy load Website Assets
Lazy load Website AssetsLazy load Website Assets
Lazy load Website Assets
 
Next Steps in Responsive Design
Next Steps in Responsive DesignNext Steps in Responsive Design
Next Steps in Responsive Design
 
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
 
Spectrum 16 pmc 16 - preparing legacy projects for responsive design
Spectrum 16   pmc 16 - preparing legacy projects for responsive designSpectrum 16   pmc 16 - preparing legacy projects for responsive design
Spectrum 16 pmc 16 - preparing legacy projects for responsive design
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Responsive images, an html 5.1 standard
Responsive images, an html 5.1 standardResponsive images, an html 5.1 standard
Responsive images, an html 5.1 standard
 
Delivering Responsive Images
Delivering Responsive Images Delivering Responsive Images
Delivering Responsive Images
 
Stc 2015 preparing legacy projects for responsive design - design issues
Stc 2015   preparing legacy projects for responsive design - design issuesStc 2015   preparing legacy projects for responsive design - design issues
Stc 2015 preparing legacy projects for responsive design - design issues
 
Hackference
HackferenceHackference
Hackference
 
Proactive Responsive Design
Proactive Responsive DesignProactive Responsive Design
Proactive Responsive Design
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
 

More from Digital Henley

Denis Kondopoulos: Increasing Sales Using Data & Personalisation
Denis Kondopoulos: Increasing Sales Using Data & PersonalisationDenis Kondopoulos: Increasing Sales Using Data & Personalisation
Denis Kondopoulos: Increasing Sales Using Data & Personalisation
Digital Henley
 
Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"
Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"
Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"
Digital Henley
 
Daria Taylor: "Personality Before Demographic"
Daria Taylor: "Personality Before Demographic"Daria Taylor: "Personality Before Demographic"
Daria Taylor: "Personality Before Demographic"
Digital Henley
 
Tim Budden: "Unlocking Insights from Social Data"
Tim Budden: "Unlocking Insights from Social Data"Tim Budden: "Unlocking Insights from Social Data"
Tim Budden: "Unlocking Insights from Social Data"
Digital Henley
 
Fraser Lewis: "FMCG Data & Decisions"
Fraser Lewis: "FMCG Data & Decisions"Fraser Lewis: "FMCG Data & Decisions"
Fraser Lewis: "FMCG Data & Decisions"
Digital Henley
 
Harry Powell - "Reimagining Data"
Harry Powell - "Reimagining Data"Harry Powell - "Reimagining Data"
Harry Powell - "Reimagining Data"
Digital Henley
 
Steve Cornish - "Passing Sensitive Data Through The Public Domain"
Steve Cornish - "Passing Sensitive Data Through The Public Domain"Steve Cornish - "Passing Sensitive Data Through The Public Domain"
Steve Cornish - "Passing Sensitive Data Through The Public Domain"
Digital Henley
 
Paul Smyth MBE - "Mobile in a Developing World"
Paul Smyth MBE - "Mobile in a Developing World"Paul Smyth MBE - "Mobile in a Developing World"
Paul Smyth MBE - "Mobile in a Developing World"
Digital Henley
 
Rob Barnes - "Personalisation Beyond Automation"
Rob Barnes - "Personalisation Beyond Automation"Rob Barnes - "Personalisation Beyond Automation"
Rob Barnes - "Personalisation Beyond Automation"
Digital Henley
 
Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"
Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"
Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"
Digital Henley
 
Tim Pelling - "Illogical Design"
Tim Pelling - "Illogical Design"Tim Pelling - "Illogical Design"
Tim Pelling - "Illogical Design"
Digital Henley
 
Mark Wing - "Tune In Before You Shoot Off"
Mark Wing - "Tune In Before You Shoot Off"Mark Wing - "Tune In Before You Shoot Off"
Mark Wing - "Tune In Before You Shoot Off"
Digital Henley
 
Chris Grant - "We're Not Alligators"
Chris Grant - "We're Not Alligators"Chris Grant - "We're Not Alligators"
Chris Grant - "We're Not Alligators"
Digital Henley
 
James Elderton "A Trick on the Brain"
James Elderton "A Trick on the Brain"James Elderton "A Trick on the Brain"
James Elderton "A Trick on the Brain"
Digital Henley
 
Terence Eden "Is Mobile All It's Cracked Up To Be?"
Terence Eden "Is Mobile All It's Cracked Up To Be?"Terence Eden "Is Mobile All It's Cracked Up To Be?"
Terence Eden "Is Mobile All It's Cracked Up To Be?"
Digital Henley
 
Pete Doyle "Social Media: Getting Personal"
Pete Doyle "Social Media: Getting Personal"Pete Doyle "Social Media: Getting Personal"
Pete Doyle "Social Media: Getting Personal"
Digital Henley
 

More from Digital Henley (16)

Denis Kondopoulos: Increasing Sales Using Data & Personalisation
Denis Kondopoulos: Increasing Sales Using Data & PersonalisationDenis Kondopoulos: Increasing Sales Using Data & Personalisation
Denis Kondopoulos: Increasing Sales Using Data & Personalisation
 
Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"
Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"
Patrick Langridge: "Machine Learning & SEO: The Future of Personalised Search"
 
Daria Taylor: "Personality Before Demographic"
Daria Taylor: "Personality Before Demographic"Daria Taylor: "Personality Before Demographic"
Daria Taylor: "Personality Before Demographic"
 
Tim Budden: "Unlocking Insights from Social Data"
Tim Budden: "Unlocking Insights from Social Data"Tim Budden: "Unlocking Insights from Social Data"
Tim Budden: "Unlocking Insights from Social Data"
 
Fraser Lewis: "FMCG Data & Decisions"
Fraser Lewis: "FMCG Data & Decisions"Fraser Lewis: "FMCG Data & Decisions"
Fraser Lewis: "FMCG Data & Decisions"
 
Harry Powell - "Reimagining Data"
Harry Powell - "Reimagining Data"Harry Powell - "Reimagining Data"
Harry Powell - "Reimagining Data"
 
Steve Cornish - "Passing Sensitive Data Through The Public Domain"
Steve Cornish - "Passing Sensitive Data Through The Public Domain"Steve Cornish - "Passing Sensitive Data Through The Public Domain"
Steve Cornish - "Passing Sensitive Data Through The Public Domain"
 
Paul Smyth MBE - "Mobile in a Developing World"
Paul Smyth MBE - "Mobile in a Developing World"Paul Smyth MBE - "Mobile in a Developing World"
Paul Smyth MBE - "Mobile in a Developing World"
 
Rob Barnes - "Personalisation Beyond Automation"
Rob Barnes - "Personalisation Beyond Automation"Rob Barnes - "Personalisation Beyond Automation"
Rob Barnes - "Personalisation Beyond Automation"
 
Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"
Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"
Omer Dawelbeit - "Cloud and Social Are All You Need To Go Big"
 
Tim Pelling - "Illogical Design"
Tim Pelling - "Illogical Design"Tim Pelling - "Illogical Design"
Tim Pelling - "Illogical Design"
 
Mark Wing - "Tune In Before You Shoot Off"
Mark Wing - "Tune In Before You Shoot Off"Mark Wing - "Tune In Before You Shoot Off"
Mark Wing - "Tune In Before You Shoot Off"
 
Chris Grant - "We're Not Alligators"
Chris Grant - "We're Not Alligators"Chris Grant - "We're Not Alligators"
Chris Grant - "We're Not Alligators"
 
James Elderton "A Trick on the Brain"
James Elderton "A Trick on the Brain"James Elderton "A Trick on the Brain"
James Elderton "A Trick on the Brain"
 
Terence Eden "Is Mobile All It's Cracked Up To Be?"
Terence Eden "Is Mobile All It's Cracked Up To Be?"Terence Eden "Is Mobile All It's Cracked Up To Be?"
Terence Eden "Is Mobile All It's Cracked Up To Be?"
 
Pete Doyle "Social Media: Getting Personal"
Pete Doyle "Social Media: Getting Personal"Pete Doyle "Social Media: Getting Personal"
Pete Doyle "Social Media: Getting Personal"
 

Recently uploaded

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
Data Hops
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Tatiana Kojar
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 

Recently uploaded (20)

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 

Ben Seymour "Practical Responsive Images"

  • 2. A picture is worth a thousand words… http://unsplash.com/ …but the cost is much greater
  • 3. http://httparchive.org http://en.wikipedia.org/wiki/Wikipedia:Size_comparisons 213,000 Words 1249kB Images Average Bytes per Page by Content Type (April 2015): If 1kB is 1024 ASCII characters 6 characters/word An estimated average word length is five characters, plus a space (1249kB * 1024) / 6 = ~213,160 (including HTML) (of a total: 1950kB) 50-60 img requests per page Average image size for JPEG was 30kB The cost of images
  • 4. Pride and Prejudice contains approximately 122,000 words http://www.searchlit.org/novels/460.php The cost of images
  • 5. The cost of images
  • 6. The Value of Images http://www.thoughtmechanics.com/the-importance-of-images-in-web-design/ “Pictures have the power to create an emotional response in the audience, which is worth its weight in gold. An image can also communicate instantly, as our brain can interpret them much quicker than text.” thoughtmechanics.com “If I’d have to pick one single thing that would sell a product online, it’s images.” Peep Laja (Conversion Coach)
  • 7. The Value of Images http://www.jeffbullas.com/2012/05/28/6-powerful-reasons-why-you-should-include-images-in-your-marketing-infographic/ In an ecommerce site, 67% of consumers say the quality of a product image is “very important” in selecting and purchasing a product http://www.jeremysaid.com/the-jaw-dropping-effect-that-images-can-have-on-your-conversion-rates/ Headshots of customer service reps on a web page can boost conversion rates by 20% Articles with images get 94% more total views Including a Photo and a video in a press release increases views by over 45% 60% of consumers are more likely to consider or contact a business when an image shows up in local search results
  • 8. In some studies 10-15x more viewers look at and engage with the content when the model is looking or gesturing towards it Images are powerful
  • 9. http://thinkeyetracking.com/2009/06/cuing-customers-to-look-at-your-key-messages/ Photo courtesy of Christian Hambly In some studies 10-15x more viewers look at and engage with the content when the model is looking or gesturing towards it Images are powerful
  • 10. Images are engaging http://www.eye-tracking.net/examples-of-eye-tracking-tests/ Eye tracking studies have shown that, as human beings, we give the most attention to other human faces.
  • 11. A lot has changed since 1993 Guess the year?
  • 12. 1993 was also the year that the <img > tag was first proposed and has remained mostly unchanged … …whereas the rest of the web- world change quite a bit!
  • 14. In 1996 The closest you can experience this today is probably Hotel WiFi Text was pretty popular… 56kbps = 7kBps 1850kB would take 265 second = 4.5 minutes Bandwidth
  • 15. A plethora of devices
  • 17. “Mobilegeddon” 21st April 2015 : Google update to its search algorithms which would begin to factor in a website’s “mobile-friendliness” as a ranking signal http://techcrunch.com/2015/04/21/googles-mobile-friendly-update-could-impact-over-40-of-fortune-500/#.8gqeuh:DxeE
  • 20. Foreground images at 100% Raster image options Background-images via CSS .item_visuals img{ width: 100%; } ……does nothing for payload. .banner { background-image: url('banner_750px.jpg'); } @media (min-width: 750px) { .banner { background-image: url('banner_1500px.jpg'); } }
  • 21. …use alternatives to raster images if you can……. SVG http://icomoon.io/
  • 22. using <noscript>, custom data- attributes and .insertAfter($(this)) http://allbs.co.uk/2012/05/11/responsive-images-intro/ Javascript Image Replacement <script> var areawidth = $(window).width(); var widthDownTosmall = 600; var widthUpToLarge = 1100; $('noscript[data-imageid]').each(function(){ var imageBase=“image/path"; var imageid = $(this).attr("data-imageid"); var imageSmall = $(this).attr("data-small-imageid"); var imageLarge = $(this).attr("data-large-imageid"); if (areawidth <= widthDownTosmall) {imageid = imageSmall; } if (areawidth >= widthUpToLarge) {imageid = imageLarge; } $('<img src="' + imageBase + imageid + '"/>').insertAfter($(this)); }); </script> <noscript data-imageid=‘bag.jpg’ data-small-imageid=‘bag_small.jpg’ data-large-imageid=‘bag_large.jpg’> <img src=‘bag_small.jpg’ alt='Bag' /> </noscript>
  • 25. Nitty gritty <picture> <source media="(min-width: 40em)" srcset="apple-big.jpg 1x, apple-big-hd.jpg 2x"> <source srcset="apple-small.jpg 1x, apple-small-hd.jpg 2x"> <img src="apple-fallback.jpg" alt="How do you like them apples?"> </picture> <img src="apple-fallback.jpg" srcset="apple-big.jpg 1000w, apple-med.jpg 640w, apple-small.jpg 320w" sizes="(min-width: 40em) 50vw, 100vw" alt="How do you like them apples?" />
  • 26. srcset x-descriptor (Device Pixel Ratio) http://respimg.es/eg/pri2 <img srcset="Butterfly-600-retina.jpg 2x" src="Butterfly-600-standard.jpg" width="600" alt="text" /> standard image ~ 34KB ‘retina’ image ~ 113KB
  • 27. srcset w-descriptor without sizes (assumes 100vw) <img srcset=“Apple_800.jpg 800w, Apple_1200.jpg 1200w" src=“Apple_fallback.jpg” alt=“How do you like them Apples?"/> </div>
  • 28. sizes attribute : vw (% viewport width) <img src=“Apple_fallback.jpg” alt="text" sizes="(min-width: 640px) 50vw, 100vw" srcset=“Apple_400.jpg 400w, Apple_600.jpg 600w, Apple_800.jpg 800w, Apple_1200.jpg 1200w" /> </div> Viewport width If width ≥ 640px then use 50vw i.e. Calculations use 50% of width 50% Within the fluid context of responsive websites, the restrictive nature of the <img> element, and lack of CSS controls for foreground images, has not been the elephant in the room. It's just been the elephant that we couldn't agree what to do with….
  • 29. Picture element : Art Direction http://respimg.es/eg/pri5 <picture> <source media="(max-width: 500px)" srcset="Apples-slices.jpg, Apples-slices-2x.jpg 2x" /> <source media="(max-width: 780px)" srcset="Apples-crop-500.jpg 500w, Apples-crop-780.jpg 780w" /> <source srcset="Apples-780.jpg 780w, Apples-1000.jpg 1000w, Apples-1800.jpg 1800w"/> <img src="Apples-fallback.jpg" alt="text" /> </picture>
  • 30. Picture element : Art Direction http://respimg.es/eg/pri5
  • 31. Use Case 2: Crop to point of interest (Art Direction)
  • 32. Use Case 3: Device Orientation srcset="landscape_variant.jpg" media="(min- width: 400px) and (orientation: landscape)" srcset="portrait_variant.jpg" media="(min-width: 400px) and (orientation: portrait)" http://responsiveimag.es/Practical_Example_3.html
  • 33. Picture element: Image Format : webp/svg <picture> <source type="image/webp" srcset="Apples_600.webp" > <source type="image/vnd.ms-photo" srcset="Apples_600.jxr" /> <img src="/Apples_600.jpg" alt="text" /> </picture> http://respimg.es/eg/pri6
  • 34. (As of : April 2015) Can I Use http://caniuse.com/#search=srcset http://caniuse.com/#search=picture
  • 35. A responsive image polyfill. For today, and future-legacy-browsers picturefill http://scottjehl.github.io/picturefill/ Developed and maintained by Filament Group <script> document.createElement( "picture" ); </script> <script src="picturefill.js" async></script>
  • 36. (scaling / CDN) Where do we get all those image variants? Batch Statics v Server-side image manipulation Build Your Own v SaaS
  • 37. image.jpg?w=400&qlt=70&unsharp=0,1,1,7 At-request-time image variants: Control width, quality, sharpening…. Dynamic Imaging Systems
  • 38. additional benefits include 
 “apparent image requests” for SEO context: Dynamic Imaging Systems /B473P_AB123_89_4UVWL/apple-ipad-mini-3-64gb-wi-fi-gold.jpg Avoiding Forking our Content
  • 39. Viewport width 50% Within the fluid context of responsive websites, the restrictive nature of the <img> element, and lack of CSS controls for foreground images, has not been the elephant in the room. It's just been the elephant that we couldn't agree what to do with…. Combining the two <img src="http://images.amplience.com/i/benco/Apple2.jpg?w=400&qlt=80" alt="How do you like them Apples?" sizes="(min-width: 640px) 50vw, 100vw" srcset="http://images.amplience.com/i/benco/Apple_Row2.jpg?w=200&qlt=80&unsharp=0,1,1,7 200w, http://images.amplience.com/i/benco/Apple_Row2.jpg?w=400&qlt=80&unsharp=0,1,1,7 400w, http://images.amplience.com/i/benco/Apple_Row2.jpg?w=600&qlt=80&unsharp=0,1,1,7 600w, http://images.amplience.com/i/benco/Apple_Row2.jpg?w=800&qlt=80&unsharp=0,1,1,7 800w, http://images.amplience.com/i/benco/Apple_Row2.jpg?w=1200&qlt=80&unsharp=0,1,1,7 1200w" /> </div>
  • 40. Combining the two <picture> <!--[if IE 9]><video style="display: none;"><![endif]--> <source srcset="http://images.amplience.com/i/benco/Apple_Row2.jpg? w=1400&qlt=80&unsharp=0,1,1,7" media="(min-width: 1200px)"> <source srcset=“http://images.amplience.com/i/benco/Apple_Row2.jpg? w=1200&qlt=80&unsharp=0,1,1,7" media="(min-width: 1050px)"> <source srcset=“http://images.amplience.com/i/benco/Apple_Row2.jpg? pcrop=700,0,2500,800&w=950&qlt=80&unsharp=0,1,1,7" media="(min-width: 850px)"> <source srcset=“http://images.amplience.com/i/benco/Apple_Row2.jpg? pcrop=1300,0,1900,800&w=850&qlt=80&unsharp=0,1,1,7" media="(min-width: 600px)"> <source srcset=“http://images.amplience.com/i/benco/Red_And_Green_Apples2.jpg? w=600&qlt=80&unsharp=0,1,1,7"> <!--[if IE 9]></video><![endif]--> <img srcset="http://images.amplience.com/i/benco/Apple2.jpg?w=600&qlt=80" alt="How do you like them Apples?"> </picture>