It seems to be uploading the full-sized image properly but for the thumb it
says 'thumbnail': None where thumbnail is the field name in the db.py file.


On Wed, Jan 9, 2013 at 1:06 AM, Daniele Pestilli <byakugan...@gmail.com>wrote:

> 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 <rochacbr...@gmail.com>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 
>> <byakugan...@gmail.com>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 <
>>> michele.comit...@gmail.com> 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 <rochacbr...@gmail.com>:
>>>> > 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.
>>>> >
>>>> > --
>>>> >
>>>> >
>>>> >
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>>
>>>  --
>>>
>>>
>>>
>>>
>>
>>  --
>>
>>
>>
>>
>
>

-- 



Reply via email to