Uploading images and making thumbnails with web.py and PIL
I ran into an issue today while trying to implement image uploads. It’s a very basic implementation: taking files from a POST request, copying them to a local folder, and then making thumbnails of them.
I started with the file upload tutorial in the web.py cookbook.
The problem I was getting was that the Python Image library (PIL) was failing to make the thumbnails, with the error ‘image file is truncated’.
