All formats

GIF libraries for C/C++

To create GIFs from RGB frames you need a color quantizer: libimagequant (GPL-3.0 or commercial; the quantizer behind pngquant and gifski), or a simple median-cut / octree you write yourself. cgif (MIT) is a small, fast encoder for animated GIFs from indexed frames, used by libvips. The public-domain single-header gif-h writes animated GIFs from RGBA frames with a built-in quantizer.