getting size of gif

Premshree Pillai premshree_python at yahoo.co.in
Mon Mar 15 06:10:26 EST 2004


Yes, use PIL. I used it recently for pyAlbum.py
[http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/271246].
The good thing about PIL is that it supports a lot of
popular image formats, if I am right.

-Premshree Pillai

 --- Fredrik Lundh <fredrik at pythonware.com> wrote: >
Cameron Laird wrote:
> 
> > >Get PIL (Python Imaging Library) if you don't
> already have it
> > >
> > >http://www.pythonware.com/products/pil/index.htm/
> > >
> > >import Image
> > >pathtogif=r'C:\xxx.gif'   # Replace with your
> path
> > >im=Image.open(pathtogif)
> > >x,y=im.size
> > >im.close()
> > .
> > .
> > .
> > It doesn't require all of PIL, though, for those
> who
> > have a reason *not* to rely on it
> 
> note that you don't need all of PIL to run the above
> example; it's enough
> to install Image.py, ImageFile.py, ImagePalette.py,
> and the *ImagePlugin.py
> files you need for your application.  the binary
> extensions are not needed.
> 
> </F>
> 
> 
> 
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list 

=====
-Premshree
[http://www.qiksearch.com/]

________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. 
Go to: http://in.insurance.yahoo.com/licspecial/index.html




More information about the Python-list mailing list