UploadFile size and Image size (PIL)
Hi all 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) There are any kind of method to know these issue? Thanks
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
participants (2)
-
Dieter Maurer -
Garito