libnsgif

Decoding library for GIF image file format

brewmacoslinux
Try with needOr install directly
Source

About

Decoding library for the GIF image file format

Examples

convert GIF image to other formats in C code$ gcc -o gif_converter converter.c -lnsgif
extract frames from animated GIF files$ cc -I/usr/local/include -L/usr/local/lib -lnsgif extract_frames.c -o extract_frames
read GIF file properties and metadata$ gcc -c gif_reader.c -I/usr/local/include && gcc gif_reader.o -o reader -L/usr/local/lib -lnsgif
decode GIF images in a custom application$ #include <nsgif.h> /* Link with: -lnsgif */