Lambda Image Resizing

Lambda Image Resizing

Lunch and Learn - April 2016

6b6afbaea3bf1de98975dedc5cd083c1?s=128

stevenjackson

April 21, 2016
Tweet

Transcript

  1. 2.

    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. 3.

    And the app would never show it at that resolution!

    Max Page Size: 1920 x 1080 414x329 915x686 944x708
  3. 5.

    The Solution: Batch convert all the images! Max Image Size

    960x540 680x540 $ convert 1416855261.78270 -size x540
  4. 7.
  5. 8.
  6. 9.
  7. 11.
  8. 12.
  9. 14.
  10. 15.
  11. 17.
  12. 18.
  13. 19.
  14. 20.
  15. 21.
  16. 22.
  17. 23.
  18. 24.
  19. 26.
  20. 27.
  21. 28.
  22. 29.
  23. 30.
  24. 31.
  25. 32.
  26. 34.
  27. 35.
  28. 37.
  29. 38.
  30. 41.
  31. 42.
  32. 43.
  33. 46.

    Lambda Gotchas Function runtime is limited to 5 minutes Maximum

    of 1.5GB memory Debugging involves waiting for CloudWatch logs to show up
  34. 48.
  35. 49.
  36. 50.
  37. 51.
  38. 52.
  39. 53.
  40. 54.
  41. 55.
  42. 56.
  43. 57.
  44. 58.