Skip to content Skip to sidebar Skip to footer

Loading A Multiframe/moving .gif Image Into Python Using Pygame

Does anyone know a simple way to load a .gif image into python using pygame? I tried loading a .gif image using 'pygame.image.load(path)' which worked although only the first frame

Solution 1:

Simply put, you cannot display multi-frame GIFs in Pygame, unless you use an extra library. Instead, explode your GIF. You will have to do everything manually, as Pygame does not control flow time, etc, which is necessary for animated GIFs.


Post a Comment for "Loading A Multiframe/moving .gif Image Into Python Using Pygame"