2.1.1 • Published 1 year ago

@vheemstra/avifenc-bin v2.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
1 year ago

avifenc-bin

This is a bin wrapper for the AVIF encoder from AOMedia's libavif for use with imagemin and the imagemin-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/