9 ms·
Thanks. If you're okay with a non-node/js solution, use https://github.com/kornelski/cavif-rs https://github.com/kornelski/cavif-rs - it does the job for me pr
by asaaki 6y ago
Thanks.
If you're okay with a non-node/js solution, use https://github.com/kornelski/cavif-rs https://github.com/kornelski/cavif-rs - it does the job for me pretty well.
For node it looks surprisingly disappointing right now, the only real candidates being the packages @saschazar/wasm-avif (v1.0.0) and avif (v0.0.1-alpha2) — I'll probably never understand the ecosystem and community, the format is out for some time and fully supported in the most widely used browser, yet barely noticeable support in the JS world.
- ochronus 6y agoThanks for the tips - I'm tied to node at the moment - wasm-avif has serious issues with thready safety an memleaks :( tried it.
- asaaki 6y agoIf you're in control of the environment, you might want to consider the yak shaving road and build a node package with a C, C++ or Rust library then. ;-)
- davidmurdoch 6y agoSharp lib is veeeerrryyy close to AVIF support: https://github.com/lovell/sharp/issues/2289 https://github.com/lovell/sharp/issues/2289 (you can compile a version to use for yourself, it's just not production stable yet).