javascriptangularamazon-web-servicesamazon-s3

Amazon S3 image preview url


I have a images storage in Amazon S3 and when I get images from it I get full sized images (each one is 5MB). Is it possible to get something like preview images (with less size), and if needed send request to normal image?


Solution

  • S3 doesn't have this built in. However, I could see a fairly simple Lambda that would be called when an image is added to your S3 bucket. It could store a thumbnail sized image in parallel with the full size image.

    Your server would then have to know to show the thumbnail first and generate a link to the full sized image. You'd also have to "bootstrap" the process once you installed the Lambda to take into account existing images.

    Again, none of this is directly built into S3 but it wouldn't take too much to implement.