If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    eanappi  11 years ago
    I did what I explained and it worked perfect. But when uploading in Amazon EC2 does not work.
     
    There are dependencies to use this module?
    replies (1)
    • villas 11 years ago

      Of course, as noted you need PIL to be installed. Check filesystem permissions of the folder that your python/webserver can write files. BTW I like the code by simpel in the comments.

Commented on:

This is a method I found to upload an image (into the uploads folder) and then create the thumbnail in the same directory. One good point is that Web2py allocates the filenames so everything can have authorization etc. It requires the Python Image Library installed.

Hosting graciously provided by:
Python Anywhere