Reading image dimensions with PIL

Will McGugan news at NOwillmcguganSPAM.com
Wed May 18 09:46:45 EDT 2005


Fredrik Lundh wrote:

> the "right" way to do this is to use the ImageFile.Parser class.  see the
> last snippet on this page for an example:
> 
>     http://effbot.org/zone/pil-image-size.htm

Excellent, thanks.

Will


-- 
http://www.willmcgugan.com
"".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-84)%26) for c 
in "jvyy*jvyyzpthtna^pbz" ] )



More information about the Python-list mailing list