squeezeimg cli
The Squeezeimg-cli is destined to optimize unlimited images without any visible loss in quality. Using the Squeezeimg-cli you can easily minify the size of all your images, speed up loading of your websites and applications. You can compress your images of such formats - .png, .jpg/.jpeg, .gif, .svg, .bmp, .tiff. Also allows you to convert your images to webP, avif and jp2 format. Try the functions right now. To do this, go to https://squeezeimg.com/.
Usage
First install Node.js and npm. You can do it here.
$ npm install -g @pintawebware/squeezeimg
$ squeezeimg (-v|--version|version)
@pintawebware/squeezeimg/0.0.28 linux-x64 node-v14.16.0
$ squeezeimg (help|--help)
$ squeezeimg (help|--help) start
USAGE
$ squeezeimg start [OPTIONS]
...
Commands
squeezeimg help start
Displays all options to start for squeezeimg. Includes descriptions and usage examples.
USAGE
$ squeezeimg help start
See code: @oclif/plugin-help
squeezeimg start
USAGE
To start compress use this command:
$ squeezeimg start -d /your/directory -t YOUR_TOKEN
To start convert, use this command:
$ squeezeimg start -d /your/directory -t YOUR_TOKEN -m convert --to webp/jp2/avif
To get full info about options, use this command:
$ squeezeimg help start
OPTIONS
-d, --dir=dir [default: installed folder]
[example: /your/directory/Pictures]
-t, --token=token [example: qWe123rTy456uPi789] - Required
-p, --processes=processes [default: 5]
[example: 10]
[max: 50]
-m, --method=method [default: compress]
[example: convert]
-q, --qlt=qlt [default: 60]
[example: 80]
-r, --rename=rename [default: false]
[example: true]
--to, --to=to [default: webp]
[example: jp2]
[example: avif]
--help show CLI help
--version show CLI version
To get token, follow this link
See code: src/commands/start.js