Snippet - Animated GIF (GIF87a) Support

I just posted Animated GIF (GIF87a) Support on Codeshare. Feel free to discuss and make suggestions here.

6 Likes

I’m expecting @ godefroi to automatically say this is awesome :wink: :smiley:

Also this should have been titled 89a not 87a, but whaccya gonna do?

I was going to, but normal gifs are old hat. If it really is GIF89a, then I’ll give it to you :slight_smile:

@ godefroi - It is 89a. NETMF will still balk if you have a frame that has dimensions other than the full size. I’ll be supplying an update for that soon, didn’t realize it was an issue until I tested more gifs.

How am I supposed to believe this works if the gif doesn’t even animate in this browser? (hint, hint, nudge, nudge, @ GHI)

1 Like

Very good and works nicely. Only if you had implemented a method to dispose of the Animated GIF it would be complete :think:

I will keep that in mind for version 2. I already have an update planned for streaming from file and support for layers that don’t match initial dimensions.

Version 2 is up. There’s more to come, but in the meantime…

[ol]Changed GIF89a.Images to GIF89a.Frames
Updated frame loading to use minimum array size
Loading of frames that are not the same size as original frame
Implemented IDisposable[/ol]

Edit: Putting the final touches on to v3, I’ve now been able to load up animations of well over a meg in size using streams. :smiley:

1 Like

Version 3 is up, we now have FileStream support and what’s this?! The GHI intro playing in all it’s glory on a FEZ Raptor?!

2 Likes

Look at that… Netmf can properly display animated GIFs while my outlook 2016 isn’t able to :wall: Now how do you like that :whistle: