Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

avif

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avif

Command line utility to convert images to AVIF

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
77
decreased by-86.03%
Maintainers
1
Weekly downloads
 
Created
Source

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

      --input              Input file name(s), supports globs/wildcards
                    [string] [default: "*.{jpg,jpeg,tif,tiff,webp,png,gif,svg}"]
      --output             Output directory
                                                [string] [default: "/home/user"]
      --quality            Quality vs file size, 1 (lowest/smallest) to 100
                           (highest/largest)              [number] [default: 50]
      --speed              CPU effort vs file size, 0 (slowest/smallest) to 8
                           (fastest/largest)               [number] [default: 5]
      --lossless           Use lossless compression   [boolean] [default: false]
      --chromaSubsampling  Set to '4:2:0' to use chroma subsampling
                                                     [string] [default: "4:4:4"]
      --overwrite          Allow existing output files to be overwritten
                                                      [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

FAQs

Package last updated on 23 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc