All formats

GIF libraries for Go

For resizing and other processing of the frames, imaging and golang.org/x/image/draw work on the decoded images. For higher-quality palettes, use a quantizer package such as ericpauley/go-quantize (BSD-3-Clause, median cut), which plugs into gif.Options.Quantizer.