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
Image Optimization
Search
Jared Potter
March 06, 2019
Programming
48
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Image Optimization
Image Optimization
Jared Potter
March 06, 2019
More Decks by Jared Potter
See All by Jared Potter
Firebase - The Best (free-ish) Platform for Personal Projects, Prototypes, and Enterprise Apps
jaredpotter
0
69
An Actually Good Intro Vue Presentation
jaredpotter
0
52
Nuxt.js
jaredpotter
0
74
Other Decks in Programming
See All in Programming
APNsからLive Activityを開始する話
yumnumm
0
170
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
680
ジョジョの世界をXRで再現する
mofurune
0
160
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.6k
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
The Rails Doctrine Decade
koic
2
590
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2.1k
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Featured
See All Featured
Crafting Experiences
bethany
1
380
BBQ
matthewcrist
90
10k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Producing Creativity
orderedlist
PRO
348
41k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
My Coaching Mixtape
mlcsv
0
360
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
How GitHub (no longer) Works
holman
316
150k
Transcript
Image Optimization Jared Potter - Software Engineer
Slides Available (also available at end) Slides: https://goo.gl/Nz6Dp5
Who Am I - Jared Potter
Talk Expectations What this talk isn’t • Nitty gritties on
image optimization What this talk is • Really simple tools to optimize images / gifs
• Un-optimized images litter the web. • Increased load times
(especially on slower mobile connections). • Increase data cost (again, to mobile). • Note: initial load only. Images will be cached. The Problem
Click me Example 1 - Photo Portfolio
Example 1 - Photo Portfolio Cont
Example 2 - Dev Portfolios
Example 2 - Dev Portfolios Cont
Example 3 - Coding Bootcamp - GIF
Example 3 - Coding Bootcamp - GIF
• Native tools (Mac Preview, Windows 10 Photo App) •
Online tools (Bulk Image Resize) • 3rd party apps (JPEGmini) ◦ Server, JS uploader, SDKs • Convert .GIFs to .MP4s • Convert .PNGs to .JPEGs The Solution
• Mac Preview - DEMO Native Solutions
A
B
• Single background image jpeg ◦ Reduced from 11.1 MB
to 3.5 MB (68% reduction) Native Solutions - Mac Preview
• PNGs to JPEGs ◦ 41.4 MBs to 2.4 MBs
(94% reduction) Native Solutions - Mac Preview
• Windows 10 Photo App Native Solutions
Web Solutions - Bulk Image Resizer
3rd Party Solutions - JPEGmini (paid)
A
B
GIF to MP4 FFMPEG Reduced GIF from 49,175,027 bytes to
812,646 bytes ~98% Reduction! Instant loading gifs. Already done by imgur, giphy, gfycat, etc
Other Photo Optimization Tips • Lazy Load your images ◦
https://github.com/juanlizarazo /image-lazy-load-demos • Upcoming WebP (picture) and WebM (video) ◦ Both open source, royalty free (compared to h.264/h.265) ◦ Hybrid support webp/webm for chrome, optimized jpeg / gifs (mp4) for other browsers
Thank You!
Resources • https://medium.com/@jaredpotter1/optimizi ng-images-for-the-web-part-1-aa88c1c6d80e • https://github.com/juanlizarazo/image-lazy-l oad-demos • https://unix.stackexchange.com/questions/4 0638/how-to-do-i-convert-an-animated-gif-t
o-an-mp4-or-mv4-on-the-command-line • https://rigor.com/blog/2015/12/optimizing-ani mated-gifs-with-html5-video
Questions? Slides: https://goo.gl/Nz6Dp5 Contact + Feedback • Email:
[email protected]
•
https://twitter.com/jaredpotter