imgresizer

1.0.3 • Public • Published

Usage

Dynamically resize your images with a simple command-line, this module uses internally the amazing imagemagick module, requires imagemagick CLI tools to be installed.

You can resize one image by just typing :

$ imgresizer -h 32 -w 32 -i input.png -o output.png

You can also do bulk resizing using a config file (ex: sizes.json) with this content:

[
{"input":"input1.png", "height":32, width:32, "output":"outputdir/output1.png"},
{"input":"input1.png", "height":64, width:64, "output":"outputdir/output2.png"}
]

Then simply generate images by typing:

$ imgresizer --bulk sizes.json

Installation

You should install globally to use it from anywhere.

$ npm install -g imgresizer

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i imgresizer

    Weekly Downloads

    0

    Version

    1.0.3

    License

    none

    Last publish

    Collaborators

    • madfu