Python: Converting GIF frames to PNG
I don’t think you’re doing anything wrong. See a similar issue here: animated GIF problem. It appears as if the palette information isn’t correctly treated for later frames. The following works for me: def iter_frames(im): try: i= 0 while 1: im.seek(i) imframe = im.copy() if i == 0: palette = imframe.getpalette() else: imframe.putpalette(palette) yield imframe … Read more