@vheemstra/avifenc-bin
v3.0.0
Published
avifenc bin-wrapper that makes it seamlessly available as a local dependency
Maintainers
Readme
avifenc-bin
This is a bin wrapper for the AVIF encoder from AOMedia's libavif for use with
imageminand theimagemin-avifencplugin.
You probably want the imagemin-avifenc plugin instead.
Install
npm install --save @vheemstra/avifenc-binUse as package
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!');
});Use as CLI command
npm install --global @vheemstra/avifenc-binavifenc --helpLicense & 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 This package uses libavif's official released binaries. Current version: 1.3.0
