The gatekeeper of reality is quantified imagination.
Project Node.js Lambda & Image Resizing
Purpose
The purpose of this project is to show a way to get an image from an http/s location, save it to S3, resize it and place the resized image to a different S3 location. Three different real-world examples (complete code segments) are presented below with the simplest first.
This example also gets an image from an http location and saves it to a folder in S3. The difference here is that a callback function is used (this becomes a required step in the next example).
This example also gets an image from an http/s location and saves it to a folder in S3. However, this example (using a generic AWS documented example), resizes the image into a few different sizes and saves the resized images to a different S3 location.