Take the 2-minute tour ×

I have this code to make a resize of an uploaded image as a thumbnail.

project.thumbnail = db.Blob(images.resize(self.request.get("img"),188,96))

However, it does not do what I want. It always resize the image to have the fixed height of 96.

Instead, I want to have all the resized images to have the same width of 188.

What should I do?

Thank you,

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You can call this as images.resize(data, width=188)

share|improve this answer
So the documentation from Google must be missing something :D code.google.com/intl/it-IT/appengine/docs/python/images/… –  Hoang Pham Nov 11 '09 at 20:03
Thank you Wooble, your code works ;) –  Hoang Pham Nov 11 '09 at 20:09
add comment

Your Answer


