Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    imgresizerpublic

    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
    

    install

    npm i imgresizer

    Downloadsweekly downloads

    12

    version

    1.0.3

    license

    none

    last publish

    collaborators

    • avatar