GIF libraries for C#
- ImageSharp reads and writes GIF in pure managed code. Animated GIFs load as an image with one full-size frame per animation frame, with delay and disposal in the frame metadata; you can resize all frames at once and save, or build an animation from images. It has several quantizers (Wu, Octree, palette) with optional dithering. Six Labors Split License: free for open source and small companies, paid above $1M revenue.
- Magick.NET brings ImageMagick’s GIF support:
MagickImageCollectionfor frames,Coalesceto get full frames,OptimizeandOptimizeTransparencyto make files smaller, and good quantization. Apache 2.0, with a large native dependency.
SkiaSharp decodes GIF frames (SKCodec.FrameCount, FrameInfo) but can’t encode GIF.
- ImageSharp ImageSharp reads and writes GIF and animated GIF in managed .NET code. How to read frames and delays, resize an animated GIF, create an animation that loops.
- Magick.NET Magick.NET is ImageMagick for .NET. How to read GIF frames and delays, coalesce and resize an animated GIF, create a looping animation.