@vheemstra/avifenc-bin
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

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/

Package Sidebar

Install

npm i @vheemstra/avifenc-bin

Weekly Downloads

14

Version

2.1.1

License

MIT

Unpacked Size

38.3 MB

Total Files

11

Last publish

Collaborators

  • vheemstra