如何生成在Amazon S3上的缩略图? [英] How to generate thumbnails on Amazon S3?

查看:2230
本文介绍了如何生成在Amazon S3上的缩略图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我卡了就这一个想法。

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

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

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

解决方案

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

I'm stuck for ideas on this one.

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.

这篇关于如何生成在Amazon S3上的缩略图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆