Naughty Praying Mantis

    @vheemstra/avifenc-bin

    1.0.0 • 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.

    Note: At the moment, only Windows is supported.

    But if you are more familiar with Cmake and building binaries, feel free to have a look at AOMedia's libavif and send your binaries using pull requests to this repository!

    Install

    $ npm install --save @vheemstra/avifenc-bin
    

    Usage

    const {execFile} = require('child_process');
    const avifenc = require('avifenc-bin');
    
    execFile(avifenc, ['--output', 'output.avif', 'input.jpg'], error => {
    	console.log('Image converted!');
    });

    CLI

    $ npm install --global @vheemstra/avifenc-bin
    
    $ avifenc --help
    

    License

    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

    Install

    npm i @vheemstra/avifenc-bin

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    23.9 MB

    Total Files

    14

    Last publish

    Collaborators

    • vheemstra