npm.io
1.0.3 • Published 8 years agoCLI

image-modulator

Licence
ISC
Version
1.0.3
Deps
4
Size
3 kB
Vulns
3
Weekly
0

What is it?

A CLI for image resizing.

Installation

npm i -g image-modulator

Usage


  Options:

    -V, --version       output the version number
    -w, --width <n>     The new width, in pixels
    -h, --height <n>    The new height of the images, in pixels
    -s, --source <dir>  The directory that contains the images you want to resize.
    -o, --out <dir>     The directory to send the resized images to
    -h, --help          output usage information

Example

To resize all images from directory ./my-imgs/ to ./my-resized-imgs to 800x543 pixels, do

image-modulator -w 800 -h 543 -s ./my-imgs -o ./my-resized-imgs/