@vheemstra/avifenc-bin
v2.1.1
Published
avifenc bin-wrapper that makes it seamlessly available as a local dependency
Downloads
13,277
Maintainers
Readme
avifenc-bin
This is a bin wrapper for the AVIF encoder from AOMedia's libavif for use with
imagemin
and theimagemin-avifenc
plugin.
You probably want the imagemin-avifenc
plugin instead.
Install
$ npm install --save @vheemstra/avifenc-bin
Usage
import {execFile} from 'node:child_process';
import avifenc from '@vheemstra/avifenc-bin';
execFile(avifenc, ['--output', 'output.avif', 'input.jpg'], err => {
if (err) {
throw err;
}
console.log('Image converted!');
});
CLI
$ npm install --global @vheemstra/avifenc-bin
$ avifenc --help
License & Info
MIT © Imagemin
libavif © 2019 Joe Drago (Released under the BSD License.)
This package is made by Philip van Heemstra
Based on jpegtran-bin by Sindre Sorhus
Linux binary from libavif 0.11.1-1 (vendor/source/libavif-0.11.1-1-x86_64.pkg.tar.zst
):
https://archlinux.org/packages/community/x86_64/libavif/
Info on compiling avifenc for macOS:
https://www.reddit.com/r/AV1/comments/hdshcc/how_to_compile_avifenc_avifdec_and_avifdump_tools/