Nybble Processing Mainframe

    imagemin-avif

    0.1.3 • Public • Published

    imagemin-avif

    Avif imagemin plugin. Uses sharp.

    Usage

    const imagemin = require('imagemin');
    const imageminAvif = require('imagemin-avif');
    
    (async () => {
      await imagemin(['images/*.{jpg,png}'], {
        destination: 'build/images',
        plugins: [
          imageminAvif({quality: 50})
        ]
      });
    })();

    API

    imageminAvif(options?)

    options

    Type: object

    quality

    Type: number
    Default: 90

    Set quality factor between 0 and 100.

    lossless

    Type: booleand
    Default: false

    Use lossless compression mode.

    speed

    Type: number
    Default: 5

    CPU effort vs file size, between 0 (slowest/smallest) and 8 (fastest/largest).

    chromaSubsampling

    Type: number
    Default: 4:2:0

    Set to 4:4:4 to prevent chroma subsampling (requires libvips v8.11.0) otherwise defaults to 4:2:0 chroma subsampling.

    Install

    npm i imagemin-avif

    DownloadsWeekly Downloads

    224

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    66.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • delfimov