4 Mar
2005
4 Mar
'05
6:52 p.m.
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