AWS S3 Same Image, Different Sizes


When a user uploads an image to my site, I save multiple copies of the image in different sizes to S3. Is it possible to save one copy of the image and access the different sizes with URL variables?

I would prefer something like this:

As opposed to this:

I do not want to download large images unnecessarily.


No, you cannot use query parameters to access different objects (files) on S3.

Just like you suggested yourself, you have to come up with a naming schema. Your suggestion was:

If you don’t like this, an alternative:


Or, if you are willing to manually set the content type of each uploaded object, even:

How you name your image objects in the S3 bucket doesn’t really matter, but your web application will have to know how to put an image URL together in order to link to the desired format.

Leave a Reply