SlideShare ist ein Scribd-Unternehmen logo
1 von 58
Downloaden Sie, um offline zu lesen
IMAGE
SCRIMMAGE
ATECHY,STRETCHY
ERIC PORTIS•SMASHINGCONFFREIBURG•2015
WHO?
QUESTION #1
SHIP HAPPENS
★URBANA!
RESPONSIVEIMAGES
COMMUNITYGROUP
http://ricg.io
WHAT!?
QUESTION #2
<img>
src="insufficent"><img
WHY?
QUESTION #3
BITMAPSARE
FLUID
FIXED
THEWEBIS
vs.
BITMAP IMAGES ARE THE
BIGGEST PERFORMANCE
BOTTLENECK ON THE
RESPONSIVE WEB
63%
oftheweb is
IMAGES
http://httparchive.org/interesting.php#bytesperpage
736 kb
2015
2011228 kb
http://httparchive.org/trends.php#bytesImg&reqImg
30”CinemaDisplay2560 x 1600
iPhone6Plus2280 x 1242 (logical)
30”CinemaDisplay2560 x 1600
iPhone6Plus2280 x 1242 (logical)
30”CinemaDisplay2560 x 1600
RetinaiMac5120 x 2880
1024 x 768
32%
1280x 800
23%
1280x 1024
11%
1440x 900
10%
2009
OTHER
4%
OTHER
24%
1366 x768
13%
1920x1080
9%
360x640
8%
768x 1024
7%
2015
http://statcounter.com
1024 x 768
32%
1280x 800
23%
1280x 1024
11%
1440x 900
10%
http://statcounter.com
2009
OTHER
4%
OTHER
24%
1366 x768
13%
1920x1080
9%
360x640
8%
768x 1024
7%
2015
VIEWPORTWIDTH WASTEDIMAGE BYTES
360px 72%
760px 53%
1260px 42%
http://timkadlec.com/2013/06/why-we-need-responsive-images/
TIM KADLEC:
Mobile Image Processing
VIDEO: https://www.youtube.com/watch?v=jP68rCjSSjM
SLIDES:https://speakerdeck.com/tkadlec/mobile-image-processing-at-velocity-sc-2015
ADAPTABILITY PRESENTS
NEW OPPORTUNITIES FOR
VISUAL DESIGN
The day after the release of
the original iPhone
~10 years later
nytimes.com on a small screen
Cropping
Some sort of… mammal? Look at that adorable
Portuguese Water dog!
Otherwise altering
Otherwise altering
HOW?
QUESTION #4
LIVECODING!
x descriptors
2x =(min-device-pixel-ratio:2)?
NO!
IF theuser’sdevicehasadevice-pixel-ratio>=2
THEN loadthisresource.
NO EXCEPTIONS!
MEDIA QUERIES:
Hey, browser! Herearesomefun
factsabouttheavailableresources.
SRCSETDESCRIPTORS:
YOU DECIDE!
x 2x
<img>
large.jpg
2x=thisresourcehas an
“image density”of2!
resource width in pixels
— <img>’s width on the layout inCSSpx
= image density e.g., 2x
.
.
medium.jpgis640 pixelswide
— its<img>hasawidthof640 pxonthelayout
= medium.jpghasanimagedensityof 1x
..
large.jpgis1280pixelswide
— its<img>hasawidthof640 pxonthelayout
= large.jpg hasanimagedensityof 2x
..
resource width
— <img>’s width on the layout
= image density
.
.
xdescriptorsonly work for
fixed-widthimages!
LIVECODING!
w and sizes
LIVECODING!
picture and media
TAYLORHUNT:
When Responsive Images Get Ugly
http://codepen.io/Tigt/blog/when-responsive-images-get-ugly
LIVECODING!
picture and type
“Groovy”
WHEN?
QUESTION #5
NOW!
X W+SIZES PICTURE
CHROME 34+ 38+ 38+
OPERA 21+ 25+ 25+
FIREFOX 38+ 38+ 38+
IE Nope.
EDGE 12+ 12+ SOON!
SAFARI 7.1+ 9+ ?*
*Butprobablysoonish
X W+SIZES PICTURE
ANDROIDSTOCK Nope.
CHROMEFORANDROID 44+ 44+ 44+
OPERAMINI Impossible?
IEMOBILE Nada.
EDGEMOBILE Probably!
iOSSAFARI 7.1+ 9+ ?*
*Butprobablysoonish
ENHANCE
<imgsrc=“mobile-first.jpg”
srcset=“progressive.jpg640w,
enhancement.jpg1280w,
works.jpg1920w”
alt=“Really.”/>
https://scottjehl.github.io/picturefill/
POLYFILL
WHEN YOU NEED TO
Picturefill!
image-set():letsyouusesrcsetsyntaxinCSS
Client Hints: letyoudosrcset-ythingsontheserver
Container Queries: The RICG’snexttrick?
WICG: Everydaydevelopersshapingtheweb
EXTRA CREDIT
THANKS!
ericportis.com
@etportis
P.S.Iwriteafortnightlyrespimgnewsletter!
Signuphere:ricg.io

Weitere ähnliche Inhalte

Ähnlich wie A Techy, Stretchy Image Scrimmage

Making the Web Fireproof: A Building Code for Websites
Making the Web Fireproof: A Building Code for WebsitesMaking the Web Fireproof: A Building Code for Websites
Making the Web Fireproof: A Building Code for WebsitesDylan Wilbanks
 
Sxsw conference presentation
Sxsw conference presentationSxsw conference presentation
Sxsw conference presentationMarcello Milteer
 
Sxsw conference presentation
Sxsw conference presentationSxsw conference presentation
Sxsw conference presentationAlgebraix
 
Speed is Essential for a Great Web Experience
Speed is Essential for a Great Web ExperienceSpeed is Essential for a Great Web Experience
Speed is Essential for a Great Web ExperienceAndy Davies
 
Conteúdos Av para novos media - aula1
Conteúdos Av para novos media - aula1Conteúdos Av para novos media - aula1
Conteúdos Av para novos media - aula1Pedro Almeida
 
Parisjs fastvideoandimages
Parisjs fastvideoandimagesParisjs fastvideoandimages
Parisjs fastvideoandimagesDoug Sillars
 
Its timetostopstalling barcelonajs
Its timetostopstalling barcelonajsIts timetostopstalling barcelonajs
Its timetostopstalling barcelonajsDoug Sillars
 
Cloud Distribution Forecast: Unsettled
Cloud Distribution Forecast: UnsettledCloud Distribution Forecast: Unsettled
Cloud Distribution Forecast: UnsettledDan Young
 
Its timetostopstalling cambridgemot
Its timetostopstalling cambridgemotIts timetostopstalling cambridgemot
Its timetostopstalling cambridgemotDoug Sillars
 
Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"Fwdays
 
Waterford fast images
Waterford fast imagesWaterford fast images
Waterford fast imagesDoug Sillars
 
Kill Your Darlings: Solving Design by Throwing Away Your Prototypes
Kill Your Darlings: Solving Design by Throwing Away Your PrototypesKill Your Darlings: Solving Design by Throwing Away Your Prototypes
Kill Your Darlings: Solving Design by Throwing Away Your Prototypesjsokohl
 
Reaching Sustainability with Online Instruction: Reduce, Reuse, and Recycle
Reaching Sustainability with Online Instruction: Reduce, Reuse, and RecycleReaching Sustainability with Online Instruction: Reduce, Reuse, and Recycle
Reaching Sustainability with Online Instruction: Reduce, Reuse, and RecycleHeidi Steiner Burkhardt
 
Its timetostopstalling londroid
Its timetostopstalling londroidIts timetostopstalling londroid
Its timetostopstalling londroidDoug Sillars
 
Going Fast on the Mobile Web
Going Fast on the Mobile WebGoing Fast on the Mobile Web
Going Fast on the Mobile WebJason Grigsby
 
Beautiful and Fast Images
Beautiful and Fast Images Beautiful and Fast Images
Beautiful and Fast Images Doug Sillars
 
Native vs. Mobile Web vs. Hybrid Apps for Mobile Development
Native vs. Mobile Web vs. Hybrid Apps for Mobile DevelopmentNative vs. Mobile Web vs. Hybrid Apps for Mobile Development
Native vs. Mobile Web vs. Hybrid Apps for Mobile DevelopmentJason Grigsby
 
stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...
stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...
stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...NETWAYS
 

Ähnlich wie A Techy, Stretchy Image Scrimmage (20)

Bit squatting
Bit squattingBit squatting
Bit squatting
 
Making the Web Fireproof: A Building Code for Websites
Making the Web Fireproof: A Building Code for WebsitesMaking the Web Fireproof: A Building Code for Websites
Making the Web Fireproof: A Building Code for Websites
 
Sxsw conference presentation
Sxsw conference presentationSxsw conference presentation
Sxsw conference presentation
 
Sxsw conference presentation
Sxsw conference presentationSxsw conference presentation
Sxsw conference presentation
 
Speed is Essential for a Great Web Experience
Speed is Essential for a Great Web ExperienceSpeed is Essential for a Great Web Experience
Speed is Essential for a Great Web Experience
 
Conteúdos Av para novos media - aula1
Conteúdos Av para novos media - aula1Conteúdos Av para novos media - aula1
Conteúdos Av para novos media - aula1
 
Parisjs fastvideoandimages
Parisjs fastvideoandimagesParisjs fastvideoandimages
Parisjs fastvideoandimages
 
Its timetostopstalling barcelonajs
Its timetostopstalling barcelonajsIts timetostopstalling barcelonajs
Its timetostopstalling barcelonajs
 
Cloud Distribution Forecast: Unsettled
Cloud Distribution Forecast: UnsettledCloud Distribution Forecast: Unsettled
Cloud Distribution Forecast: Unsettled
 
Its timetostopstalling cambridgemot
Its timetostopstalling cambridgemotIts timetostopstalling cambridgemot
Its timetostopstalling cambridgemot
 
Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"
 
Waterford fast images
Waterford fast imagesWaterford fast images
Waterford fast images
 
Kill Your Darlings: Solving Design by Throwing Away Your Prototypes
Kill Your Darlings: Solving Design by Throwing Away Your PrototypesKill Your Darlings: Solving Design by Throwing Away Your Prototypes
Kill Your Darlings: Solving Design by Throwing Away Your Prototypes
 
IoT and Energy
IoT and EnergyIoT and Energy
IoT and Energy
 
Reaching Sustainability with Online Instruction: Reduce, Reuse, and Recycle
Reaching Sustainability with Online Instruction: Reduce, Reuse, and RecycleReaching Sustainability with Online Instruction: Reduce, Reuse, and Recycle
Reaching Sustainability with Online Instruction: Reduce, Reuse, and Recycle
 
Its timetostopstalling londroid
Its timetostopstalling londroidIts timetostopstalling londroid
Its timetostopstalling londroid
 
Going Fast on the Mobile Web
Going Fast on the Mobile WebGoing Fast on the Mobile Web
Going Fast on the Mobile Web
 
Beautiful and Fast Images
Beautiful and Fast Images Beautiful and Fast Images
Beautiful and Fast Images
 
Native vs. Mobile Web vs. Hybrid Apps for Mobile Development
Native vs. Mobile Web vs. Hybrid Apps for Mobile DevelopmentNative vs. Mobile Web vs. Hybrid Apps for Mobile Development
Native vs. Mobile Web vs. Hybrid Apps for Mobile Development
 
stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...
stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...
stackconf 2023 | Dynamic Image Optimization with imgproxy at Schwarz IT by An...
 

Kürzlich hochgeladen

WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringWSO2
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governanceWSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 

Kürzlich hochgeladen (20)

WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

A Techy, Stretchy Image Scrimmage