image-batch-resizer

CLI batch image resizer

image-batch-resizer

CLI script for asynchronous batch image resizing.

This script asynchronous convert image files, recursing walking deeply from selected directory.

Use ImageMagick convert inside.

npm install image-batch-resizer -g

! Before usage image-batch-resizer you MUST install ImageMagick binary !

For Mac OS with installed brew

brew install imagemagick

or find your way

$ image-batch-resizer -d ./image_dir

Void call show help information

$ image-batch-resizer 

Image batch resizer v.0.5.9

Convert image files, recursing walking deeply from selected directory.
Usage: image-batch-resizer -d [start directory]

Options:
  -d, --dir, --directory      Directory to start recursing walking             [required]
  -p, --prefix                Prefix for resized images                        [default: "res_"]
  -R, --remove-original-file  Remove original file after convert ("yes"|"no")  [default: "no"]
  -s, --size                  Size for image resizing                          [default: "1920x1080"]
  -w, --workers               Workers number(parallel jobs)                    [default: "2"]