Reputation: 26652
Some pictures, not all, exceed the maximum width and height that I want.
Is there a way to specify the max image size with get_serving_url()
?
Upvotes: 3
Views: 408
Reputation: 12838
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
Upvotes: 3