如何生成在Amazon S3上的缩略图?缩略图、Amazon

2023-09-12 21:27:34 作者:我在借着搞笑眼泪狂飙i

我卡了就这一个想法。

我正在使用的文件浏览器来存储所有媒体文件中的S3存储桶一个CMS。

我有4个选项,后者生成原始图像新的缩略图图像的缩略图大小。如果我这样做服务器端在PHP中有很好 - 我只是在不知如何做到这一点,如果所有原始文件都存储在斗(我想缩略图成为好)

还有没有有有什么想法?我使用PHP5。

解决方案

您script'll需要拉图像下移,操纵它,以及使用该S3的API上传操纵版本回桶

I'm stuck for ideas on this one.

亚马逊s3的使用方法 使用Amazon S3 –第一部分

I'm working on a CMS that uses a file-browser to store all media file in an S3 bucket.

I have 4 options for thumbnail sizes which generate new thumbnail images from original image. If I'm doing this server-side in PHP it's fine - I'm just at loss as to how to do this if all the original files are stored on the bucket (I want the thumbnails to be as well).

Does any have have any ideas? I'm using PHP5.

解决方案

Your script'll need to pull the image down, manipulate it, and upload the manipulated version back to the bucket using the S3 API.