save animated GIF with Python Image Library

christof.hoeke at christof.hoeke at
Thu Feb 5 11:18:28 CET 2004

how can i save an animated GIF with PIL. 
e.g. i like to rotate all frames of an image and tried the following:
im ='anim.gif')
for f in ImageSequence(im): #using the class from the PIL handbook
    if f:
        f = f.rotate(180)'animrotated.gif')
problem is that only one frame (i guess the last one) is saved.
i could not find any options for saving GIFs in the handbook.
can this be done at all?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list