[Image-SIG] animated gif

gohaku gohaku at earthlink.net
Thu Feb 3 04:45:18 CET 2005


Hi Lionel,
Although I have not tested gifmaker, it certainly seems like you
can create an animated GIF with PIL.

You can download gifmaker.py at
http://www.bel-epa.com/pyapache/Python/PIL/Imaging-1.1.1/Scripts/ 
gifmaker.py
or
http://olympus.het.brown.edu/doc/python-imaging/examples/gifmaker.py

and check out the following test script:

  # import Image
  # import gifmaker
  #
  # sequence = []
  #
  # # generate sequence
  # for i in range(100):
  # im = <generate image i>
  # sequence.append(im)
  #
  # # write GIF animation
  # fp = open("out.gif", "wb")
  # gifmaker.makedelta(fp, sequence)
  # fp.close()


gohaku

> Hi all,
> Is it possible to create an animated gif with PIL? I can't find any
> documentation about this feature?
> Thanks
> Lionel



More information about the Image-SIG mailing list