[Image-SIG] animated gifs

Thomas Logan logan33@email.unc.edu
Tue, 17 Dec 2002 00:59:21 -0500 (EST)


hello, i'm using pil 1.1.3

am trying to take a bunch of gif files and animate them in one outfile

i try to use the sample script
and get this fault
Traceback (most recent call last):
  File "D:\MyProject\Main.py", line 35, in ?
    for s in getheader(im) + getdata(im):
  File "C:\Python22\lib\site-packages\PIL\GifImagePlugin.py", line 324, in
getheader
    s.append(im.getpalette("RGB")[:maxcolor*3])
AttributeError: GifImageFile instance has no attribute 'getpalette'

any ideas?

the calling code looks like

fp = open("out.gif", "wb")
sequence = []
for i in range(1,18):
    im = Image.open("trickPics\\p"+str(i)+".GIF")
    sequence.append(im)
gifmaker.makedelta(fp, sequence)
fp.close()