简体   繁体   中英

What is the best way to store images in App Engine Blob Storage?

I need to store images in two sizes:
1.Thumbnail (100x200px).
2. Big image (1024x2048).

There are few options of storage:
a) Save original image than resize it dynamically when page is loading by using "Image Manipulation API".
b) Resize original image by "Image Manipulation API" than save two copies in different resolutions.

It seems to me that option a) is using lots of "Frontend Instance Hours". But I don't found any information about how to make option b) work.

You can get it for free using the getServingUrl API.
You upload the image to the blobstore and pass the user a url with the resize params.
The backend will resize the image for you in runtime and save a cached version, you will only pay for the bandwidth.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM