pygame is
Simple DirectMedia Layer is
Site Swing

GIFImage - 0.9c

RB[0] (roebros)



This library provides functionality to load and play GIF animations in pygame.
Also provided are ways to manipulate the animation playback, by setting regions to play, reversing etc.

ATM there is a potential bug where some gif's may not have their palette's set correctly (either some/all frames will be completely black, or they will be jarbled)
If you encounter this, please post here, with a link to the gif (if possible)

Also note, the gifs included are not mine, the football one was a free one from some site, and the hulk is from a tutorial I found on using PIL gifs.

Requires PIL.


Added a bunch of new images (got these from google and various free emoticon sites, will replace later...) and got all but one to work. The one that won't work I have no clue how to handle, as PIL's gif-player example won't even play any of these gifs really well - and this one it does the exact same thing on (it is the violin one, it has no palette and won't animate). Anyone who would like to try and figure out what is going on here would be really appreciated :)


Home Page:


GIFImage - 0.9c - Feb 13, 2009
GIFImage - 0.9b - Feb 13, 2009
GIFImage - 0.9a - Feb 13, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

No user comments have been submitted.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)