Re: [web2py] Re: Field compute= and make thumbnail

2011-09-26 Thread Pepe Araya
oh! thanks very much! I'll try pepe On Mon, Sep 26, 2011 at 3:30 PM, pbreit wrote: > Here's what I do. Seems to work. > > Field('image', 'upload', uploadfolder=request.folder+'static/uploads', > requires=IS_EMPTY_OR(IS_IMAGE())), > Field('image_display', 'upload', > uploadf

[web2py] Re: Field compute= and make thumbnail

2011-09-26 Thread pbreit
Here's what I do. Seems to work. Field('image', 'upload', uploadfolder=request.folder+'static/uploads', requires=IS_EMPTY_OR(IS_IMAGE())), Field('image_display', 'upload', uploadfolder=request.folder+'static/uploads', compute=lambda r: resize_image(r['image'], (320

[web2py] Re: Field compute= and make thumbnail

2011-09-26 Thread Anthony
See http://www.web2pyslices.com/main/slices/take_slice/62 (also, look at the comments on that post for additional options). Anthony On Monday, September 26, 2011 1:06:14 PM UTC-4, Pepe Araya wrote: > Hello, > > I have a table where only store images related to x Article. > > db_define_table(