[Zope] UploadFile size and Image size (PIL)

Dieter Maurer dieter at handshake.de
Fri Mar 4 13:52:07 EST 2005


Garito wrote at 2005-3-4 17:12 +0100:
>I'm trying to reduce big image uploadfile with PIL
>
>But I have a little problem: I know the size of the uploadfile (moving 
>the file pointer with read() and then tell()) but I need to create a 
>PIL.Image object and for that I need to know the Image size (with and heigh)

I think, you can load a PIL image directly from a file
and (in this case) PIL will determine all relevant paramters
(such as sizes).

-- 
Dieter


More information about the Zope mailing list