By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,222 Members | 2,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,222 IT Pros & Developers. It's quick & easy.

Problem creating animated gif

P: n/a
I am using 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\", line 442, in __bootstrap
File "c:\", line 10, in run
gifmaker.makedelta(fp, seq)
File "c:\", line 79, in makedelta
for s in getheader(im) + getdata(im):
File "c:\Python24\Lib\site-packages\PIL\", 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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.