I put imageutils in my app's modules directory, then I added:
Field("thumbnail", "upload", uploadfolder=os.path.join(request.folder,
'uploads', 'profiles', 'thumbs')),
to the appropriate database table, and below that, in the same file (db.py)
I wrote:from imageutils import THUMB db.tutor.thumbnail.compute = lambda row: THUMB(row.picture, 200, 200) but the resizing doesn't seem to work. Am I doing something wrong? On Tue, Jan 8, 2013 at 9:29 PM, Michele Comitini <[email protected] > wrote: > I use wand for the task: http://pypi.python.org/pypi/Wand/0.1.10 > there are many other bindings on the impressive *magick libraries, but > this one being a ctypes implementation is light and fast enough.. > > mic > > > 2013/1/8 Bruno Rocha <[email protected]>: > > I am using this recipe: > > > > > http://www.web2pyslices.com/slice/show/1522/generate-a-thumbnail-that-fits-in-a-box > > > > I have plans to integrate it with a JavaScript Cropper plugin to get the > > dimensions. > > > > -- > > > > > > > > -- > > > > --

