Python: la Conversion de GIF images PNG

Je suis très nouveau pour python, en essayant de l'utiliser pour diviser les images d'un GIF en PNG images.

# Using this GIF: http://www.videogamesprites.net/FinalFantasy1/Party/Before/Fighter-Front.gif

from PIL import Image

im = Image.open('Fighter-Front.gif')
transparency = im.info['transparency'] 
im.save('test1.png', transparency=transparency)

im.seek(im.tell()+1)
transparency = im.info['transparency'] 
im.save('test2.png', transparency=transparency)

# First frame comes out perfect, second frame (test2.png) comes out black,
# but in the "right shape", i.e. 
# http://i.stack.imgur.com/5GvzC.png

Est-ce spécifique à l'image que je suis en train de travailler avec ou suis-je en train de faire quelque chose de mal?

Merci!

OriginalL'auteur Joseph | 2011-02-05