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


  • 0
    villas  14 years ago
    The validator is good for transforming a field, but at the end you just have one image/field. In the case of this slice I wanted to automatically create a thumbnail from an upload which would result in having two files/fields. I think the use case is therefore different. However, it is still good to know this RESIZE validator. Thanks.

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