@hkamran/image-convert

1.0.1 • Public • Published

@hkamran/image-convert

License: AGPL-3.0 npm version

Convert PNG files to the WebP and AVIF file formats

Usage

$ npx @hkamran/image-convert

Options

  • --input (default: *.{jpg,jpeg,tif,tiff,png,gif,svg}): Input filename(s), supports globs/wildcards
  • --output (optional, defaults to current directory): Output directory
  • --quality (default: 50): Quality vs file size, 1 (lowest/smallest) to 100 (highest/largest)
  • --speed (default: 5): CPU effort vs file size, 0 (slowest/smallest) to 8 (fastest/largest)
  • --lossless (default: false): Use lossless compression
  • --chromaSubsampling (default: 4:4:4): Set to '4:2:0' to use chroma subsampling
  • --overwrite (default: false): Allow existing files to be overwritten
  • --verbose (default: false): Write progress to stdout

Readme

Keywords

Package Sidebar

Install

npm i @hkamran/image-convert

Weekly Downloads

0

Version

1.0.1

License

AGPL-3.0-or-later

Unpacked Size

7.07 kB

Total Files

3

Last publish

Collaborators

  • hkamran