If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
Commented on:
In this recipe you will see how to create a custom computation to create a thumbnail to fit centered in a specific box
Hosting graciously provided by:
0
christian-harms-10713 12 years ago
If you copy shameless python code for other sites - the internet never forget. Please add a link to the original article:
http://united-coders.com/christian-harms/image-resizing-tips-general-and-for-python
And here a copy + link on stackoverflow:
http://stackoverflow.com/questions/273946/how-do-i-resize-an-image-using-pil-and-maintain-its-aspect-ratio
Thanx!
replies (1)