3

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()?

1 Answer 1

3

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

2
  • Thanks! Are we sure that's a mazimum size and not a scaling i.e. that smaller picture won't get scaled up? Cheers Apr 29, 2011 at 14:16
  • 1
    Correct, smaller images will not be scaled up.
    – Drew Sears
    Apr 29, 2011 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.