GIF Image Size
John Grayson
johngrayson at home.com
Tue Jan 2 15:00:50 EST 2001
In article <Wxp46.24381$F_3.940941 at newsread2.prod.itd.earthlink.net>,
"Rindolf" <rindolf2 at yahoo.comNOSPAM> wrote:
> Is there any way to find out the dimensions of a GIF image using
python? I
> looked in the language reference and it didn't look like there was.
>
> Rindolf
>
>
Assuming you're using Tkinter, use the height and width methods
of PhotoImage. Alternatively, if you're using PIL use the 'size'
attribute of a PIL Image object...
See scrapbook2.py in http://www.manning.com/Grayson/chapt05.pdf
for an example...
Sent via Deja.com
http://www.deja.com/
More information about the Python-list
mailing list