SlideShare a Scribd company logo
1 of 48
Download to read offline
THE FUTURE OF IMAGES IN EMAIL
Mark Robbins
REBEL
@M_J_Robbins  |  @GoRebelmail
IMAGE FORMATS
The past
GIF
est. 1987
Use for: at colours,
animations, etc.
JPG
est. 1992
Use for: gradient colours,
photos, etc.
PNG
est. 1995
Use for: transparent
images, etc.
IMAGE FORMATS
The Future
SVG
Scalable Vector Graphic
est. 1999
HOW TO ADD SVG
Inline SVG
<svg>
 <path d="">
</svg>
Object SVG
<object type="image/svg+xml" data="/image.svg"></object>
Linked SVG
<img src="/image.svg">
svg - 12.3kb png - 15.8kb
SVG V'S PNG
✔iOS
✘ Gmail
✔iPad
✔Applemail
✘ Outlook
✔Samsung
✔Outlook.com
✔Android
✔Yahoo
✘ Windows live
Supported:66%
Fallback:0%
Unsupported:29%
SVG SUPPORT IN TOP 10 CLIENTS
WEBP
Developed by Google
est. 2010
webp - 107kb jpg - 152kb
WEBP V'S JPG
✘ iOS
✔Gmail
✘ iPad
✘ Applemail
✘ Outlook
✔Samsung
✔Outlook.com
✔Android
✔Yahoo
✘ Windows live
Supported:40%
Fallback:0%
Unsupported:56%
WEBP SUPPORT IN TOP 10 CLIENTS
HEIF
Developed by Apple
est. 2015
SUPPORT...
coming in iOS 11
ANIMATION
WHAT SHOULD WE USE FOR ANIMATION?
gif or jif?
WHAT SHOULD WE USE FOR ANIMATION?
gif or jif?
svg, webP, HEIF or png
ANIMATED PNG
Animated Portable Network Graphics
est. 2008
✔iOS
〜Gmail
✔iPad
✔Applemail
〜Outlook
✔Samsung
✔Outlook.com
✔Android
✔Yahoo
〜Windows live
Supported:66%
Fallback:29%
Unsupported:0%
APNG SUPPORT IN TOP 10 CLIENTS
IMAGE LOAD OPTIMISATION
THE HATEFUL WEIGHT
Henri Helvetica
Litmus Live Boston 2017
QUICK OPTIMISATION TIPS
Use image compression - ImageOptim, TinyPNG
Use a CDN (Content Delivery Network) - Cloudinary, imgix
Avoid unnecessary <img> tags
HOW TO REPLACE AN IMAGE
Bad example
<img src="/100kb.jpg" class="desktop">
<img src="/80kb.jpg" class="mobile" style="display:none">
HOW TO REPLACE AN IMAGE
Load optimised example
<img src="/100kb.jpg" class="desktop">
<div></div>
HOW TO REPLACE AN IMAGE
Accessible example
<img src="/100kb.jpg" class="desktop" alt="alt text">
<div role="img" aria-label="alt text" style="display:none"></div>
RESPONSIVE & RETINA IMAGES
BASIC RESPONSIVE RETINA IMAGE
<img src="/200x1200/image.jpg" alt="alt text" height="100" width="600"
style="height:auto;max-width:100%;" >
SRCSET
<img src="/100x600.jpg" srcset="/200x1200.jpg 2x, /300x1800.jpg 3x" alt="alt
text" height= "100" width="600" style="height:auto;max-width:100%;">
✔iOS
〜Gmail
✔iPad
✔Applemail
〜Outlook
✔Samsung
〜Outlook.com
✔Android
〜Yahoo
〜Windows live
Supported:58%
Fallback:37%
Unsupported:0%
SRCSET SUPPORT IN TOP 10 CLIENTS
IMAGE-SET
.image{
background-image: url('100x600.jpg');
background-image: -webkit-image-set(url('/100x600.jpg') 1x,
url('/200x1200.jpg') 2x , url('/300x1800.jpg') 3x);
}
✔iOS
✔Gmail
✔iPad
✔Applemail
✘ Outlook
✔Samsung
✘ Outlook.com
✔Android
〜Yahoo
✘ Windows live
Supported:80%
Fallback:3%
Unsupported:12%
IMAGE-SET SUPPORT IN TOP 10 CLIENTS
PICTURE
<picture>
<source media="(min-width: 650px)" srcset="img650.jpg">
<source media ="(min-width: 400px)" srcset="img400.jpg">
<img src="imgFallback.jpg" alt="alt text">
</picture>
✔iOS
〜Gmail
✔iPad
✔Applemail
〜Outlook
✔Samsung
〜Outlook.com
✔Android
〜Yahoo
〜Windows live
Supported:58%
Fallback:37%
Unsupported:0%
<PICTURE> SUPPORT IN TOP 10 CLIENTS
IMAGE MANIPULATION
none multiply screen
overlay darken lighten
color-dodge saturation
color luminosity
background-blend-mode:none
BACKGROUND-BLEND-MODE
✔iOS
✔Gmail
✔iPad
✔Applemail
✘ Outlook
✔Samsung
✘ Outlook.com
✔Android
〜Yahoo
✘ Windows live
Supported:80%
Fallback:3%
Unsupported:12%
BACKGROUND-BLEND-MODE SUPPORT IN
TOP 10 CLIENTS
none blur brightness
contrast drop-shadow
grayscale hue-rotate
invert opacity saturate
sepia
filter:none
FILTER
✔iOS
〜Gmail
✔iPad
✔Applemail
〜Outlook
✔Samsung
〜Outlook.com
✔Android
〜Yahoo
〜Windows live
Supported:58%
Fallback:37%
Unsupported:0%
FILTER SUPPORT IN TOP 10 CLIENTS
auto pixelated
crisp-edges
image-rendering:auto
IMAGE-RENDERING
✔iOS
〜Gmail
✔iPad
✔Applemail
〜Outlook
✔Samsung
〜Outlook.com
✔Android
〜Yahoo
〜Windows live
Supported:58%
Fallback:37%
Unsupported:0%
IMAGE-RENDERING SUPPORT IN TOP 10
CLIENTS
BACK TO THE FUTURE
(of new image formats in email)
SVG FALLBACK
<img src="/logo.gif" srcset="/logo.svg 1x">
✔iOS
〜Gmail
✔iPad
✔Applemail
〜Outlook
✔Samsung
〜Outlook.com
✔Android
〜Yahoo
〜Windows live
Supported:58%
Fallback:37%
Unsupported:0%
SVG FALLBACL IN TOP 10 CLIENTS
WEBP FALLBACK
Use a CDN and set it to auto generate the format
〜iOS
✔Gmail
〜iPad
〜Applemail
〜Outlook
✔Samsung
✔Outlook.com
✔Android
✔Yahoo
〜Windows live
Supported:40%
Fallback:56%
Unsupported:0%
WEBP FALLBACK IN TOP 10 CLIENTS
WE DIDN'T HAVE TIME FOR...
Multiple background images on single element
Animating background images
CSS images
Inline SVG & Animating SVG
< gure> & < gcaption>
Dynamic alt text for dynamic images
Image sprites
Image fonts
HTTP2
OS and Browser support
AND FINALLY...
THANK YOU
Mark Robbins
REBEL
@M_J_Robbins  |  @GoRebelmail

More Related Content

Similar to The future of images in email - Litmus live London 2017

[cssdevconf] Adaptive Images in RWD
[cssdevconf] Adaptive Images in RWD[cssdevconf] Adaptive Images in RWD
[cssdevconf] Adaptive Images in RWD
Christopher Schmitt
 
Android 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkAndroid 2D Drawing and Animation Framework
Android 2D Drawing and Animation Framework
Jussi Pohjolainen
 
[rwdsummit2012] Adaptive Images in Responsive Web Design
[rwdsummit2012] Adaptive Images in Responsive Web Design[rwdsummit2012] Adaptive Images in Responsive Web Design
[rwdsummit2012] Adaptive Images in Responsive Web Design
Christopher Schmitt
 

Similar to The future of images in email - Litmus live London 2017 (20)

Beyond Ionic
Beyond IonicBeyond Ionic
Beyond Ionic
 
Practical Responsive Images - from Second Wednesday
Practical Responsive Images - from Second WednesdayPractical Responsive Images - from Second Wednesday
Practical Responsive Images - from Second Wednesday
 
The Big Picture: Responsive Images in Action #scd14
The Big Picture: Responsive Images in Action #scd14The Big Picture: Responsive Images in Action #scd14
The Big Picture: Responsive Images in Action #scd14
 
Responsive design
Responsive designResponsive design
Responsive design
 
Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da Web
 
Shared Element Transitions
Shared Element TransitionsShared Element Transitions
Shared Element Transitions
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
 
SVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader AccessibilitySVG Icons and Screen Reader Accessibility
SVG Icons and Screen Reader Accessibility
 
Bilder einbinden ist kein Thema, oder?
Bilder einbinden ist kein Thema, oder?Bilder einbinden ist kein Thema, oder?
Bilder einbinden ist kein Thema, oder?
 
Setting the Stage for SVG Animation
Setting the Stage for SVG AnimationSetting the Stage for SVG Animation
Setting the Stage for SVG Animation
 
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
[CSSDevConf] Adaptive Images in Responsive Web Design 2014[CSSDevConf] Adaptive Images in Responsive Web Design 2014
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
 
Css web gallery
Css web galleryCss web gallery
Css web gallery
 
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
 
The Big Picture: Responsive Images in Action #devcon13
The Big Picture: Responsive Images in Action #devcon13The Big Picture: Responsive Images in Action #devcon13
The Big Picture: Responsive Images in Action #devcon13
 
Responsive Design in WordPress
Responsive Design in WordPressResponsive Design in WordPress
Responsive Design in WordPress
 
[cssdevconf] Adaptive Images in RWD
[cssdevconf] Adaptive Images in RWD[cssdevconf] Adaptive Images in RWD
[cssdevconf] Adaptive Images in RWD
 
Android 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkAndroid 2D Drawing and Animation Framework
Android 2D Drawing and Animation Framework
 
Fastandbeautiful gdgtallinn
Fastandbeautiful gdgtallinnFastandbeautiful gdgtallinn
Fastandbeautiful gdgtallinn
 
[rwdsummit2012] Adaptive Images in Responsive Web Design
[rwdsummit2012] Adaptive Images in Responsive Web Design[rwdsummit2012] Adaptive Images in Responsive Web Design
[rwdsummit2012] Adaptive Images in Responsive Web Design
 
Imagesandvideo stockholm fastandbeautiful
Imagesandvideo stockholm fastandbeautifulImagesandvideo stockholm fastandbeautiful
Imagesandvideo stockholm fastandbeautiful
 

Recently uploaded

Recently uploaded (20)

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
 
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
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
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
 
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)
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
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
 
"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 ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

The future of images in email - Litmus live London 2017