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
Lambda Image Resizing
Search
stevenjackson
April 21, 2016
Programming
87
0
Share
Lambda Image Resizing
Lunch and Learn - April 2016
stevenjackson
April 21, 2016
More Decks by stevenjackson
See All by stevenjackson
Death By Specification
stevenjackson
1
45
Devour The Cloud With Locust Swarms - Hands On Load Testing
stevenjackson
0
90
Looking for Failure
stevenjackson
0
160
Better Software Through Shared Understanding
stevenjackson
0
180
Going to Eleven
stevenjackson
0
96
A Locust Storm Is A Good Thing!
stevenjackson
0
150
Faliing Your Way To Success
stevenjackson
0
100
Death By Specification(cukeup)
stevenjackson
0
160
Failure Lightning Talk
stevenjackson
0
100
Other Decks in Programming
See All in Programming
Talking to terminals (and how they talk back) (KotlinConf 2026)
jakewharton
PRO
1
170
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.4k
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
2
520
Oxlintのカスタムルールの現況
syumai
5
930
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
330
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.1k
Moments When Things Go Wrong
aurimas
3
130
Inside Stream API
skrb
1
490
今さら聞けないCancellationToken
htkym
0
210
関係性から理解する"同一性"の型用語たち
pvcresin
2
620
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.2k
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
220
Featured
See All Featured
Designing for Timeless Needs
cassininazir
1
240
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
22k
From π to Pie charts
rasagy
0
200
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
210
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
The Cult of Friendly URLs
andyhume
79
6.9k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Un-Boring Meetings
codingconduct
0
300
Discover your Explorer Soul
emna__ayadi
2
1.1k
How to make the Groovebox
asonas
2
2.2k
HDC tutorial
michielstock
2
680
Music & Morning Musume
bryan
47
7.2k
Transcript
WE DON’T NEED NO STINKING SERVERS IMAGE RESIZING WITH AWS
LAMBDA
The Problem: For the last 6 years, users have been
able to upload any image they like for use in a VizZle lesson 10144 × 8054 pixels 32.6 MB 980 DPI minutes to download
And the app would never show it at that resolution!
Max Page Size: 1920 x 1080 414x329 915x686 944x708
Or the old app Flash “Card” Size: 520 x 390
The Solution: Batch convert all the images! Max Image Size
960x540 680x540 $ convert 1416855261.78270 -size x540
“How many images are there anyway?” –Hey Blinken
None
None
None
“Are you going to download every one from the internet?”
–Al Gore
None
None
“What are we going to do with new uploads?” –Johnny
Five
None
None
“Who is going to maintain that EC2 instance?” –Jeff Bezos
None
None
None
None
None
None
None
None
Or any binary compiled on Amazon Linux!
None
None
None
None
None
None
None
Read/Write S3 Role Type: AWS Lambda Attach Policy: AWSLambdaExecute
None
None
Lambda Interface
None
None
Deployment
Configuration
Testing
Testing
Testing
Image Resizing Gotchas Maintain Aspect Ratios Lossy vs Lossless Lossy
vs Headless Lambda Inception ACLs
Image Resizing Gotchas Maintain Aspect Ratios Lossy vs Lossless Lossy
vs Headless Lambda Inception ACLs
Lambda Gotchas Function runtime is limited to 5 minutes Maximum
of 1.5GB memory Debugging involves waiting for CloudWatch logs to show up
“What else can we do with it?” –Jeff Bezos
None
None
None
None
None
None
None
None
None
None
None