Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lambda Image Resizing

Lambda Image Resizing

Lunch and Learn - April 2016

stevenjackson

April 21, 2016
Tweet

More Decks by stevenjackson

Other Decks in Programming

Transcript

  1. 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
  2. And the app would never show it at that resolution!

    Max Page Size: 1920 x 1080 414x329 915x686 944x708
  3. The Solution: Batch convert all the images! Max Image Size

    960x540 680x540 $ convert 1416855261.78270 -size x540
  4. Lambda Gotchas Function runtime is limited to 5 minutes Maximum

    of 1.5GB memory Debugging involves waiting for CloudWatch logs to show up