From:
http://code.google.com/appengine/docs/python/images/imageclass.html

<http://code.google.com/appengine/docs/python/images/imageclass.html> resize
(width=0, height=0)

Resizes an image, scaling down or up to the given width and height. *The
resize transform preserves the aspect ratio of the image.* If both the
width and
theheight arguments are provided, the transform uses the dimension that
results in a smaller image.




On 13 January 2011 09:55, Albert <[email protected]> wrote:

> A user can upload a picture to blobstore, which I would like to resize
> to have a maximum of only 500px in width. I don't want to specify the
> height since I want it to maintain the aspect ratio.
>
> The resize() function of the images api seems to require the height as
> well. Is this true?
>
> How do I get what I want?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to