python - how to display images from the ndb datastore using data URI scheme (via passing data to template and not having to make another request) -
I store a thumbnail image as a blob property of my entity. I am able to fix the pictures described here:
However, there is a need to get another request and get the ID from NDB. Since I already have the original unit available, when I present the IMG tag with the proper href attribute, would there be a way to render the image inline?
I have read the documentation for the Google Images API, but there is no such thing that will present my image in the format required to be included as a string. I go to a very large scale, but somehow everyone is suggesting ways to represent images from the above mentioned datastore. Being able to render images using the Yuri plan in my mind not only will the datastore get a request (perhaps with a memkach, but still still) but most importantly, the visitors of my page have a round across the ocean Will save you from traveling, which is fast enough to serve the page.
Many thanks for all your help!
Use the image service and the images will be served from a high speed image service, which is probably In case you can get closer to your end users, then you can organize yourself in GAE.
get_serving_url (blob_key, size = none, crop = false, safe_value = none) one Returns the URL that works on the image.
This URL format allows dynamic resizing and crop, so you do not need to store different image sizes on the server. Images are highly customized, with less latency than crooked infrastructure. This also avoids another hit in the database, as you store the URL and serve the user.
Comments
Post a Comment