Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

imgresizer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgresizer

image command-line resizer

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

Keywords

resize

FAQs

Package last updated on 09 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts