Libnsgif is a decoding library for the GIF image file format, written in C. It was developed as part of the NetSurf project and is available for use by other software under the MIT licence.
You can browse the source code via the online interface. Alternatively, you can check it out with Git:
$ git clone git://git.netsurf-browser.org/libnsgif.git
Libnsgif is licensed under the MIT Licence.
If you would like to discuss Libnsgif, please join the NetSurf developer mailing list.