开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜