avif

    0.3.1 • Public • Published

    avif-cli

    Command line utility to convert images to AVIF, requires Node.js 12.13.0+

    Usage

    $ npx avif

    By default, will search current directory for image files and create AVIF variants.

    Exit code is non-zero if one or more errors occured.

    Options

    Options:
          --input               Input file name(s), supports globs/wildcards
                        [string] [default: "*.{jpg,jpeg,tif,tiff,webp,png,gif,svg}"]
          --output              Output directory, default is same directory as input
                                                              [string] [default: ""]
          --quality             Quality vs file size, 1 (lowest/smallest) to 100
                                (highest/largest)             [number] [default: 50]
          --effort              CPU effort vs file size, 0 (fastest/largest) to 9
                                (slowest/smallest)             [number] [default: 4]
          --speed               Convert speed vs file size, 0 (slowest/smallest) to
                                9 (fastest/largest)
                                                 [deprecated: use --effort] [number]
          --lossless            Use lossless compression  [boolean] [default: false]
          --chroma-subsampling  Set to '4:2:0' to use chroma subsampling
                             [string] [choices: "4:2:0", "4:4:4"] [default: "4:4:4"]
          --overwrite           Allow existing output files to be overwritten
                                                          [boolean] [default: false]
          --append-ext          Append .avif to the file name instead of replacing
                                the current extension (foo.jpg => foo.jpg.avif)
                                                          [boolean] [default: false]
          --verbose             Write progress to stdout  [boolean] [default: false]
      -h, --help                Show help                                  [boolean]
          --version             Show version number                        [boolean]
    

    Examples

    npx avif --verbose
    npx avif --input="**/*.{jpg,jpeg}" --output="/another/path" --overwrite
    npx avif --input="images/*.*" --speed=0 --quality=30

    Keywords

    Install

    npm i avif

    DownloadsWeekly Downloads

    68

    Version

    0.3.1

    License

    Apache-2.0

    Unpacked Size

    18.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • lovell