Hmm still not working. I'm wondering if this is the problem: uploadfolder=os.path.join(request.folder, 'uploads', 'profiles', 'thumbs') should it be uploadfolder=os.path.join(request.folder, 'uploads', 'profiles/thumbs') or something?
On Wed, Jan 9, 2013 at 12:43 AM, Bruno Rocha <[email protected]> wrote: > Yeah it is a problem in THUMB function, thumb function looks for files > under /uploads and you are defining another folder. > > change the imageutils module replacing /uploads with /uploads/profile > > On Tue, Jan 8, 2013 at 9:30 PM, Daniele Pestilli <[email protected]>wrote: > >> 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. >>> > >>> > -- >>> > >>> > >>> > >>> >>> -- >>> >>> >>> >>> >> -- >> >> >> >> > > -- > > > > --

