giflib is a library for reading and writing GIF files. The 4.1.3 Release is a general cleanup of bugs and hard to read code. It syncs with the 4.1.3 release of libungif and should provide programmers with an API and ABI compatible replacement for that library.
giflib is able to read and write all GIF files using the LZW algorithm patented by UniSys. Although this patent has expired in the United States, patent searches by the FSF show that worldwide patents exist until 2006. If you must have a patent free version of the library, please look into libungif as a suitable replacement.
If you are using giflib on MS Windows, you may be interested in the code in the windows subdirectory provided by Lennie Araki under the same terms as the giflib library. Unfortunately, I do not have a Windows environment to maintain this code. If anyone wants to keep it functional, patches and maintainers are welcome.