return image in mod python

Diez B. Roggisch deets at nospam.web.de
Mon Nov 19 05:36:38 EST 2007


Abandoned wrote:

> Hi i have a problem.
> 
> def showimage(req):
>         from PIL import Image
>         im=Image.open("c:\image-2.jpg")
>         im.thumbnail((800,600), Image.ANTIALIAS)
>         req.sendfile(im)
> 
> 
> 
> give me some error.

Really? I don't see any error. So there can't be one.

Diez



More information about the Python-list mailing list