Python GTK JPEG Images

Jeff Epler jepler at unpythonic.net
Thu Oct 17 22:54:15 EDT 2002


On Thu, Oct 17, 2002 at 07:02:33PM -0700, Murray Blakeman wrote:
> It appears that it will do most things that I want it to but I have
> found it difficult finding information on how to display JPEG images
> (from the HDD) in a GTK window with Python.

There is an example using the "imlib" library.  On my system, this is in
/usr/share/doc/pygtk-0.6.8/examples/imlib/view.py

I recall that imlib can resize & rotate jpeg images. (in fact, view.py
seems to scale images if they are larger than the screen resolution)

Jeff




More information about the Python-list mailing list