468,284 Members | 1,540 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,284 developers. It's quick & easy.

Problem creating animated gif

I am using gifmaker.py from PIL v1.1.5 on python 2.4.1.

import ImageGrab, gifmaker

seq = []

while keepOnGoing:
im = ImageGrab.grab()

fp = open("out.gif", "wb")
gifmaker.makedelta(fp, seq)


however I am getting this error:

Exception in thread Thread-3:
Traceback (most recent call last):
File "c:\Python24\lib\threading.py", line 442, in __bootstrap
File "c:\foo.py", line 10, in run
gifmaker.makedelta(fp, seq)
File "c:\gifmaker.py", line 79, in makedelta
for s in getheader(im) + getdata(im):
File "c:\Python24\Lib\site-packages\PIL\GifImagePlugin.py", line 383,
in getdata
ImageFile._save(im, fp, [("gif", (0,0)+im.size, 0,
KeyError: 'RGB'
Any ideas? Basically I want to make an animated GIF out of a bunch of
images taken using the ImageGrab module.

Oct 17 '06 #1
0 1015

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.