Hi - trying to make gif anims

Bilal Garwood <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
Hi support people 

I am using pygame and want to take a sequence of images from my game and make them into a gif anim. If possible I need help to import other modules and apply them to get what I want. 

I can save successive images using the pygame.image.save  module, but this only allows saving in TGA, BMP(unformatted), JPEG or PNG. 

I have to convert the image to a gif format. the part I am stuck on is not the header and extension blocks of the gif, but the decoding of image data.

 It seems to switch the indexing away from a regular colour palette that has index FF or 255  as black. 

I think it has reshuffled the indexing somewhere, because my most used colour is blue and that is ascribed the FF index.

I need to know how pygame.image.save  rearranges the indices in the file. 

If anyone can help me around this problem, or suggest a simpler way that takes advantage of PIL modules and save to a gif animation I would be very grateful.  

Thanks in advance for your help -I think if this problem is solved it will probably contribute to a new pygame module, because gif animations could show previews of developers' gameplay, rather than static screenshots. 

Bilal

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.