Post

I just published napi-webp-animation on NPM! This package lets you encode animated WebPs, which look better and are generally smaller than GIFs. I wrote it in Rust for speed (and to learn), but it has a simple and easy-to-use JavaScript/TypeScript API. www.npmjs.com/package/napi...

npmjs.comnapi-webp-animationA fully typed WebP animation package for NodeJS using Rust. Latest version: 0.1.0, last published: 14 minutes ago. Start using napi-webp-animation in your project by running `npm i napi-webp-animation...

0 reposts1 like

I made this in 3 days, 2 of which were spent fighting the CI to get the build and tests to run correctly. I'm still a Rust newbie, so the code might not be optimal. If anyone who is good at Rust would like to take a look at the source, that would be sick.

Also yes, I made this because of Discord's file upload size limit reduction, and because I couldn't find any existing libraries that did this.