Niklas Rosencrantz
Niklas Rosencrantz

Reputation: 26652

How to specify a maximum image size with get_serving_url

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

Answers (1)

Drew Sears
Drew Sears

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

Related Questions