Play animated GIF to end of file

Hi, it’s not implemented in the GifDecoder library yet, but could be. I’m nearly finished adapting the GifDecoder library to use the external AnimatedGIF library to do the decoding, and the AnimatedGIF library supports playing back a GIF that’s stored in memory.

The changes are made in this branch, but I’ll merge it in to the main branch and do a release soon:

This example from AnimatedGIF doesn’t use SmartMatrix Library, but you could probably adapt it to SmartMatrix easily enough:

There’s also the option of using the SPIFFS to store a GIF file. I’m not that familiar with that option. Someone adapted the AnimatedGIFs sketch (which is the basis of the GifDecoder Library) to use SPIFFS, so you might want to refer to their code and try to get that working with GifDecoder.

Feel free to post back and get some help on either path. I’m interested in supporting both options but don’t have a lot of time right now to work on it.