際際滷

際際滷Share a Scribd company logo
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.
The future of images in email - Litmus live London 2017
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=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"/image.svg"></object>
Linked SVG
<img src=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"/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=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"/100kb.jpg" class="desktop">
<img src="/80kb.jpg" class="mobile" style="display:none">
HOW TO REPLACE AN IMAGE
Load optimised example
<img src=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"/100kb.jpg" class="desktop">
<div></div>
HOW TO REPLACE AN IMAGE
Accessible example
<img src=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"/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=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"/200x1200/image.jpg" alt="alt text" height="100" width="600"
style="height:auto;max-width:100%;" >
SRCSET
<img src=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"//slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/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(/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/&);
background-image: -webkit-image-set(url('//slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/100x600.jpg') 1x,
url(/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/&) 2x , url(/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/&) 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=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"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=/slideshow/the-future-of-images-in-email-litmus-live-london-2017/79318082/"/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

The future of images in email - Litmus live London 2017