谷歌应用引擎blob商店创建

Sin*_*ion 2 python google-app-engine image blobstore

为了节省宝贵的带宽,图像服务应用程序(一个次要但是整个应用程序的重要部分)尝试仅提供缩略图或缩小尺寸预览可能的大型照片或插图.将原始图像存储在BlobStore中非常简单,使用Image服务生成缩略图也很简单.

What I don't know how to do is put the thumbnails back into the BlobStore. I'd much rather do it this way so I don't have to implement two methods for serving images. Is there a way to send data from my app into the BlobStore? The only way I can concieve is to generate an upload URL and then post to that url using the URL Fetch Service, But if I have to go to that amount of trouble, I'd rather just put the thumbnails in the DataStore.

And*_*ris 7

您根本无需从BlobStore中的图像创建缩略图 - 请使用get_serving_url函数(请参阅http://code.google.com/appengine/docs/python/images/functions.html).

此功能可以快速生成并缓存大图像中的缩略图,甚至不会花费任何CPU(请参阅此帖子)