On Wed, Dec 4, 2013 at 8:20 AM, 黄祥 <steve.van.chris...@gmail.com> 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 on web2py 2.8.2.
>
>
in gluon.contrib.imageutils RESIZE there is a try ... except block
just after the except add:

Probably there is an exception that is been swallowed.

And I guess that the exception that is been raise is something:

IOError: cannot write mode P as JPEG

If this is the error, you can put just before the img.save(...) in
gluon.contrib.imageutils.py:

img = img.convert('RGB')

Are you uploading a png?

What happen when you upload a jpeg?


Ricardo

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to