GUI and creating GIF

Andrew M. Kuchling akuchlin at cnri.reston.va.us
Thu Apr 29 12:39:12 EDT 1999


Frank.Derville writes:
>I would like to
>1) create a GIF file under Python by drawing lines, text, ... I have looked
>at Tk which can create bitmaps and photoimage but their seem to be no
>possibility to transform a canvas into a photoimage.
>2) rotate some text on a canvas.

	The Python Imaging Library seems to be what you need; look at
http://www.pythonware.com/products/pil/ .  PIL lets you create Image
objects which are bitmaps that you can draw on and manipulate in
various ways, and save Images in one of a large number of different
formats, GIF and JPEG being the most common ones.  There's also some
connectivity with Tkinter, so you can display Images on a canvas.  I'm
not sure if PIL's font code can handle rotation, though.

-- 
A.M. Kuchling			http://starship.python.net/crew/amk/
Fast, fat computers breed slow, lazy programmers.
    -- Robert Hummel






More information about the Python-list mailing list