Can I preview a image of my Amazon s3 without down

2019-09-15 02:51发布

问题:

I am mounting a gallery with photos stored in a amazon s3 server.

To purposes of speed, I don't want to load completely all of them once the client open the gallery.

There is any way to download only a miniature of the image or something like that?

(I'm working with php/symfony2/wordpress just for detail)

回答1:

There are two ways you can add compression to your flow:

  1. You cancompress server side before the picture is passed to the client.

    Pro - Doesn't need extra storage

    Con- Uses computing

  2. You can compress once the picture is uploaded and store a thumbnail version and the high quality version.

    Pro - Does not use computing every single time someone requests a picture

    Con - would use slightly more storage