Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Image Optimization
Search
Jared Potter
March 06, 2019
Programming
0
22
Image Optimization
Image Optimization
Jared Potter
March 06, 2019
Tweet
Share
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
63
An Actually Good Intro Vue Presentation
jaredpotter
0
41
Nuxt.js
jaredpotter
0
57
Other Decks in Programming
See All in Programming
非同期jobをtransaction内で 呼ぶなよ!絶対に呼ぶなよ!
alstrocrack
0
850
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
170
明日から始めるリファクタリング
ryounasso
0
140
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
0
160
Domain-centric? Why Hexagonal, Onion, and Clean Architecture Are Answers to the Wrong Question
olivergierke
2
840
Goで実践するドメイン駆動開発 AIと歩み始めた新規プロダクト開発の現在地
imkaoru
4
830
Six and a half ridiculous things to do with Quarkus
hollycummins
0
170
ソフトウェア設計の実践的な考え方
masuda220
PRO
4
580
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
150
uniqueパッケージの内部実装を支えるweak pointerの話
magavel
0
1k
Pull-Requestの内容を1クリックで動作確認可能にするワークフロー
natmark
2
510
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
490
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
BBQ
matthewcrist
89
9.8k
How to Think Like a Performance Engineer
csswizardry
27
2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Building an army of robots
kneath
306
46k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
114
20k
For a Future-Friendly Web
brad_frost
180
9.9k
Speed Design
sergeychernyshev
32
1.2k
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