Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread Richard Vézina
I wrote this slice sometimes ago : http://www.web2pyslices.com/slice/show/1666/improved-smarthumb There is an improve version at the bottom post in the comment by faultymonk It mays help you or not... Richard On Wed, Dec 4, 2013 at 6:53 AM, 黄

[web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread 黄祥
i can't figure it out how to use RESIZE, but i still can use THUMB. tested in windows 7, web2py both windows binary and source and python pil for windows installed. after all, this what i'm not looking for, at first, i think it's related with image size, but i realize, it's just the css that al

[web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread Ivo
Hi, I'm having the same kind of troubles but haven't bothered yet on resolving them. Do you have jpeg decoder installed? I think that could solve your problems On Tuesday, December 3, 2013 7:49:40 AM UTC+1, 黄祥 wrote: > > hi, > > i'm trying to resizing uploaded image file upload using > gluon.co

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread 黄祥
hi ricardo, i've tried to upload *.jpg files and yet the results is not resize. what should i do to achieve that? thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread Ricardo Pedroso
On Wed, Dec 4, 2013 at 8:20 AM, 黄祥 wrote: > tried on ubuntu 13.10 with web2py 2.8.2 source and python-imaging > installed it's still not worked, tried installed pil for windows from > http://www.pythonware.com/products/pil/ is not worked too. > i suspect the gluon.contrib.imageutils is not worked

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-04 Thread 黄祥
tried on ubuntu 13.10 with web2py 2.8.2 source and python-imaging installed it's still not worked, tried installed pil for windows from http://www.pythonware.com/products/pil/ is not worked too. i suspect the gluon.contrib.imageutils is not worked on web2py 2.8.2. best regards, stifan -- Resou

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-03 Thread 黄祥
any other solution how to resize the size on web2py? even tried to do it on client side using html nothing change. e.g. {{=IMG(_src=URL('default', 'download', args=row.image), _alt=row.model, _width='220', _height='220') }} in that html i define the width and height, i tested it on normal html i

Re: [web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-03 Thread Richard Vézina
My guess would be that this contrib is not working with Pilow packaging of PIL library... Richard On Tue, Dec 3, 2013 at 9:38 AM, 黄祥 wrote: > even tried what was written on imageutils.py, to put it on modules and > import it on models, but still not resize (no errors messages). > e.g. > *model

[web2py] Re: resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-03 Thread 黄祥
even tried what was written on imageutils.py, to put it on modules and import it on models, but still not resize (no errors messages). e.g. *models/db_wizard_3_product.py* from images import RESIZE db.product.image.requires = RESIZE(200, 200) any idea how to achieve it? thanks and best regards,