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
21
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
62
An Actually Good Intro Vue Presentation
jaredpotter
0
40
Nuxt.js
jaredpotter
0
54
Other Decks in Programming
See All in Programming
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
240
NPOでのDevinの活用
codeforeveryone
0
500
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
210
スタートアップの急成長を支えるプラットフォームエンジニアリングと組織戦略
sutochin26
0
250
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
540
AIプログラマーDevinは PHPerの夢を見るか?
shinyasaita
1
180
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
260
GraphRAGの仕組みまるわかり
tosuri13
8
510
設計やレビューに悩んでいるPHPerに贈る、クリーンなオブジェクト設計の指針たち
panda_program
6
1.8k
Result型で“失敗”を型にするPHPコードの書き方
kajitack
4
550
C++20 射影変換
faithandbrave
0
560
Benchmark
sysong
0
280
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
Embracing the Ebb and Flow
colly
86
4.7k
Producing Creativity
orderedlist
PRO
346
40k
Visualization
eitanlees
146
16k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
How to train your dragon (web standard)
notwaldorf
94
6.1k
Thoughts on Productivity
jonyablonski
69
4.7k
Automating Front-end Workflow
addyosmani
1370
200k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.5k
Designing for humans not robots
tammielis
253
25k
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