#How i can use external C lib
6 messages · Page 1 of 1 (latest)
if there aren't any existing rust bindings for the library, you probably want to look at bindgen: https://rust-lang.github.io/rust-bindgen/
if you're not set on using this cgif, i've had a seamless experience with https://github.com/ImageOptim/gifski on the command line, and it probably has a rust api if it has a c one
gif.ski library allows creation of GIF animations from arbitrary pixels, or PNG files.
it is AGPL however
I tried it before, I did some simple tests and some demanding ones, with my Ryzen 5500 processor, and even using all the optimizations that gifski provides, it gives me worse performance than libwebp-sys, almost half the time difference. My idea is to create an image processing API to apply effects and all that, so I'm looking for a tool that allows me to optimize the GIF part. I already tried ffmpeg, but I still haven't found the right one