开发者

How to specify a maximum image size with get_serving_url

开发者 https://www.devze.com 2023-03-01 14:12 出处:网络
Some pictures, not all, exceed the maximum width and he开发者_开发问答ight that I want. Is there a way to specify the max image size with get_serving_url()?Yes, size is an optional 2nd argument on get

Some pictures, not all, exceed the maximum width and he开发者_开发问答ight that I want.

Is there a way to specify the max image size with get_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

0

精彩评论

暂无评论...
验证码 换一张
取 消