Animated GIFs?

I just had a thought…

Can SDL Image handle animated GIFs? If so, is there any way to access the
individual frames?

I’m wondering because when I used to program on the Amiga I used Blitz
Basic, where you were able to save a whole load of images in a single file.
You could then load and access each of these “shapes” by their index number.
I figured that if you could do the same thing with an animated gif, it would
be a quick and dirty solution my little problem of having 10 million
individual files for images.

Of course, I could always put them all onto one bitmap and cut them out as
needed…

Anyone got a better alternative?

Sweeney, Steven (FNB) wrote:

I just had a thought…

Can SDL Image handle animated GIFs? If so, is there any way to access the
individual frames?

I’m wondering because when I used to program on the Amiga I used Blitz
Basic, where you were able to save a whole load of images in a single file.
You could then load and access each of these “shapes” by their index number.
I figured that if you could do the same thing with an animated gif, it would
be a quick and dirty solution my little problem of having 10 million
individual files for images.

Of course, I could always put them all onto one bitmap and cut them out as
needed…

Anyone got a better alternative?

DevIL (http://www.imagelib.org/) can handle animated GIFs and MNGs by
switching between their frames after loading (but I think it ignores the
animation timing).

RK.

Hello,

Is there a way to use animated gifs in SDL. I tried
just blitting it, but there is no animations. Help
would be greatly appretiated

Thanks,
Rafik______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca

;^) Answered (more or less) on #sdl.

I haven’t looked, but I have a funny feeling SDL_anim library might be
useful here, too. :wink: :wink:

-bill!On Mon, May 19, 2003 at 02:01:45PM -0400, Rafik Rezzik wrote:

Hello,

Is there a way to use animated gifs in SDL. I tried
just blitting it, but there is no animations. Help
would be greatly appretiated