Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Responsive images have landed
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Derek Johnson
October 09, 2014
Technology
190
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Responsive images have landed
An introduction to responsive images standards: , @srcset and @sizes.
Derek Johnson
October 09, 2014
More Decks by Derek Johnson
See All by Derek Johnson
Responsive Web Design
derekjohnson
0
48
Git branching strategy
derekjohnson
0
100
Git basics
derekjohnson
1
72
How modern web design works
derekjohnson
0
430
Other Decks in Technology
See All in Technology
AI時代に顧客へ最速で価値を 届けるための試行錯誤 〜「AI × マネジメント」領域におけるmentoのケース〜
posterkeisuke
0
110
クロスボーダーM&AのValue Upを支えるプロダクト開発。日米チームのハブになったプロダクトエンジニアの実践 / Product Engineering Conference 2026
genda
0
120
2026-09-09 【sigma_ucj#1】Sigma を IaC 管理したい! / IaC for Sigma
civitaspo
0
120
2026-09-11 【Snowflake World Tour Tokyo 2026】Snowflakeを起点に、AI Agentが自律稼働し続ける未来へ / Driving AI Agents with Snowflake
civitaspo
0
340
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
3
470
Microsoft 365 Copilot chat -tekoälypalvelun tietosuojaongelmat
hponka
0
730
Gitは怖い?共有ワークスペースから始めるSnowflakeチーム開発
coco_se
0
170
10分で知る最近のOmarchy
komagata
0
260
Podは生きているのにGoだけが落ちる:GOGCとGOMEMLIMITで追うInvisible OOM Killの謎
tkc66buzz
1
600
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
510
[2026-09-11]SREは誰のもの?運用エンジニアが始める 「SRE領域への越境」とチームの進化の軌跡 〜Road to NEXT CRE
tosite
0
160
多層防御と最⼩権限で実現する、安全なAIエージェント設計パターン
lycorptech_jp
PRO
1
270
Featured
See All Featured
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
850
Making the Leap to Tech Lead
cromwellryan
135
10k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Writing Fast Ruby
sferik
630
63k
Into the Great Unknown - MozCon
thekraken
41
2.7k
Heart Work Chapter 1 - Part 1
lfama
PRO
9
36k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
450
Fireside Chat
paigeccino
43
4k
Designing Experiences People Love
moore
143
24k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Thoughts on Productivity
jonyablonski
76
5.4k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
Transcript
Responsive images ! Derek Johnson
<img src alt>
None
None
• Resolution switching • Viewport based • Pixel density •
Art direction • Design breakpoints • Media types • Relative units • Image formats • User control of source
<img src alt srcset>
srcset= “cat.jpg 1x, cat2.jpg 2x”
None
None
None
srcset= “cat.jpg 300w, cat2.jpg 600w”
None
None
None
None
None
None
None
srcset= “cat.jpg 300w, cat2.jpg 600w” sizes= “(min-width:50em) 30vw, (min-width:20em) 50vw,
100vw”
None
None
None
None
None
None
None
<picture> <source srcset media> <source srcset media> <img src alt>
</picture>
<picture> <source srcset type> <source srcset type> <img src alt>
</picture>
<picture> <source srcset="images/asio-otus-300.webp 300w, images/asio-otus-400.webp 400w, images/asio-otus-600.webp 600w, images/asio-otus-800.webp 800w"
sizes="(min-width:78.947em) 18.75em, (min-width:74em) 23.75vw, (min-width:60em) 31.6666667vw, (min-width:38em) 47.5vw, 95vw" type="image/webp"> <source srcset="images/asio-otus-300.jpg 300w, images/asio-otus-400.jpg 400w, images/asio-otus-600.jpg 600w, images/asio-otus-800.jpg 800w" sizes="(min-width:78.947em) 18.75em, (min-width:74em) 23.75vw, (min-width:60em) 31.6666667vw, (min-width:38em) 47.5vw, 95vw" type="image/jpeg"> <img src="images/asio-otus-300.jpg" alt="Long eared owl"> </picture>
browser support
polyfill
None