将上传的图片转换为缩略图 +斑点存储区
问题:
在 Google App Engine Blobstore 中,有没有办法将上传的原始图片转换为缩略图?
将图片转换为缩略图是一个好主意还是有更好的方法?
如果我想使用缩略图和普通图片,最好的优化是什么?我的意思是,我是否应该浪费额外的存储空间来存储缩略图?
性能非常受青睐。预先感谢愿意提供帮助的人!
Questions:
In Google App Engine Blobstore, is there a way to convert the original picture uploaded to thumbnail picture?
Is converting the picture to thumbnail picture a good idea or there are better ways?
What are the best optimization if I wish to use thumbnail picture as well as normal pictures? What I meant is that, shall I waste additional storage just to store the thumbnail pictures?
Performance is preferred very much. Thank you in advance for who's willing to help !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不一定需要存储额外的图片缩略图版本。请查看 get_serving_url()。
您可以使用该函数生成一个带有参数的图片的“公开但不可猜测”的 URL,以便动态调整大小,并且它针对性能进行了优化。我认为它非常适合您的需求。
You don't necessarily need to store additional thumbnail versions of pictures. Check out get_serving_url().
You can use that function to generate a -public, but not guessable- URL to the picture with parameters to do resizing on the fly and it's optimized for performance. I think it's well suited for your needs.