我可以预览亚马逊s3的图像而无需完全下载吗? [英] Can I preview a image of my Amazon s3 without downloading it completely?
问题描述
我正在安装一个带有存储在亚马逊s3服务器中的照片的图库。
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?
(我正在使用php / symfony2 / wordpress来获取详细信息)
(I'm working with php/symfony2/wordpress just for detail)
推荐答案
有两种方法可以添加压缩流程:
There are two ways you can add compression to your flow:
-
您可以在图片传递到客户端之前压缩服务器端。
You cancompress server side before the picture is passed to the client.
专业 - 不需要额外存储
Pro - Doesn't need extra storage
Con - 使用计算
您可以在上传图片后进行压缩并存储缩略图版本和高质量版本。
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 - 会使用tinyl更多存储空间
Con - would use slightly more storage
这篇关于我可以预览亚马逊s3的图像而无需完全下载吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!