1.0.1 • Published 7 months ago

pictures-converter v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

pictures-converter

Node.js image converter (JPEG, PNG, WebP, AVIF, TIFF, GIF) CLI

Validation workflow Coverage Status

Installation:

This is a Node.js module, that can be run with the command line. First ensure you have npm installed, and then install as follows:

npm install -g pictures-converter

Usage:

pictures-converter -o webp [options]

Options:
  --input, -i       Input pictures extention to convert in case of directory path   [string][default="jpeg,jpg,png,webp,avif,tiff,gif"]
  --output, -o      Output picture extention                                        [string]
  --path, -p        Path to the input file / directory                              [string][default="./"]
  --verbose, -v     Increase verbosity                                              [boolean][default=false]

Examples:

Convert a picture into a WebP one

pictures-converter -p mypicture.png -o webp

Convert every pictures in a directory into PNG ones

pictures-converter -p pictures/ -o png

Convert every JPEG or WEBP pictures in a directory into PNG ones

pictures-converter -p pictures/ -i jpeg,jpg,webp -o png
1.0.1

7 months ago

1.0.0

7 months ago