4

I have a thousands of existing images in s3, and I need to resize all images from one folder, and put it in another folder, but still in one bucket. Is there any solution to resize it with or without lambda? And what trigger shoud I use? Thanks in advance

tukangketik
  • 53
  • 1
  • 3

3 Answers3

6

If this is a one-time job I would use the simplest approach:

  1. Start EC2 instance.
  2. Mount S3 bucket as a filesystem with s3fs or goofys.
  3. Run ImageMagick on all the files with scaling parameters.
Sergey Kovalev
  • 9,110
  • 2
  • 28
  • 32
1

Rather than resizing the images, you could consider using a "resize-on-the-fly" service such as:

You can construct URLs that automatically resize images to the desired size, without having to resize and store them yourself.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • Hi, thanks for your suggestion, I have been implemented cloudinary and it's works well for images and other media. But I move to S3 and cloudfront because it more cost effective. Hundred thousands of images are matters for transformations and bandwidth :) – tukangketik Dec 23 '16 at 02:51
  • You can build your own resizer application easily, check out this repo for more information: https://github.com/sadok-f/flyimg – sadok-f Jan 03 '17 at 23:08
0

I am using Serverless Image Handler from AWS and I'm enjoying it. It's very simple to implement!

Lucas Martins
  • 508
  • 6
  • 9