Using AWS S3 for photo storage

后端 未结 2 666
粉色の甜心
粉色の甜心 2021-02-09 12:13

I\'m going to be using S3 to store user uploaded photos. Obviously, I wont be serving the image files to user agents without resizing them down. However, not one size would do,

2条回答
  •  半阙折子戏
    2021-02-09 13:00

    This sounds like a good approach. Depending on your application you should define a set of thumbnail sizes that you always generate. But also store the original user file, if your requirements change later. When you want to add a new thumbnail size, you can iterate over all original files and generate the new thumbnails from it. This option gives you flexibilty for later.

提交回复
热议问题