Highest-quality GIF encoder based on pngquant.
gifski converts video frames to GIF animations using pngquant's fancy features for efficient cross-frame palettes and temporal dithering. It produces animated GIFs that use thousands of colors per frame.
It's a CLI tool, but it can also be compiled as library for seamelss use in other apps (note that for closed-source apps you need a commercial pngquant license).
See releases page for executables.
If you have Rust, you can also get it with cargo install gifski. Run cargo build --release to build from suorce.
I haven't finished implementing proper video import yet, so for now you need ffmpeg to convert video to PNG frames first:
ffmpeg -i video.mp4 frame%04d.pngand then make the GIF from the frames:
gifski -o file.gif frame*.pngSee gifski -h for more options.