Applications must implement responsive web design strategies today. However most developers are not experienced in responsive techniques. More over images have provided a difficult hurdle for developers and business stakeholders to make responsive.
A proper responsive web design strategy increases return on investment, reduces long term maintenance requirements and improves application performance. Images create many challenges in implementing responsive design.
This session will explain what responsive images are. How new web standards have enabled manageable responsive image practices. We will go over tooling and techniques to enable responsive images in your developer and line of business workflows.
When you leave this session you will have actionable knowledge of responsive images, techniques, tooling and workflow options you can apply to your projects now.
8. The Image Problem
• Screen Diversity Means Variety of Image Sizes & Quality
• Screen Size
• Screen Resolution
• Bandwidth Consideration
• Art Direction
23. sizes
A list of one or more strings
separated by commas indicating a
set of source sizes.
Each source size consist of a
media condition and a source size
value
24. <img
sizes="(max-width: 453px) 67vw, 453px"
srcset="img/66-pounds-108-days-cover_fz0145_c_scale,w_200.jpg 200w,
img/66-pounds-108-days-cover_fz0145_c_scale,w_280.jpg 280w,
img/66-pounds-108-days-cover_fz0145_c_scale,w_346.jpg 346w,
img/66-pounds-108-days-cover_fz0145_c_scale,w_405.jpg 405w,
img/66-pounds-108-days-cover_fz0145_c_scale,w_453.jpg 453w"
src="img/66-pounds-108-days-cover.jpg"
alt="66 Pounds in 108 Days - How a Normal Fat Guy Lost Weight and Got In
Shape"/>
32. Don’t Panic!!!!
•PICTURE is a progressive
enhancement
•So it fails gracefully
•Internet Explorer & Safari
load the src image just like
always!
33.
34. <PICTURE> ELEMENT
<picture>
<source media="(min-width: 650px)" srcset="images/kitten-large.png">
<source media="(min-width: 465px)" srcset="images/kitten-medium.png">
<!-- img tag for browsers that do not support picture element -->
<img src="images/kitten-small.png" alt="a cute kitten">
</picture>
35. <PICTURE> ELEMENT - Type
<picture>
<source type="image/svg+xml" srcset="logo.xml">
<source type="image/webp" srcset="logo.webp">
<img src="logo.png" alt="ACME Corp">
</picture>
36. When using the <PICTURE>
element you must make sure
your CSS breakpoints match
your image breakpoints
38. Great! But How Do You Manage Responsive
Images?
Automation!
39. The Image Problem – Read More
• http://responsiveimages.org/
• Jason Grigsby Responsive Images Series
http://blog.cloudfour.com/responsive-images-101-part-10-conclusion/