How to specify a maximum image size with get_serving_url
Some pictures, not all, exceed the maximum width and he开发者_开发问答ight that I want.
Is there a way to specify the max image size withget_serving_url()
?Yes, size is an optional 2nd argument on get_serving_url. You can specify an integer between 0 and 1600; if either the height or width exceed this, the image is resized down to fit.
http://code.google.com/appengine/docs/python/images/functions.html
精彩评论