iconresize

0.9.7 • Public • Published

iconresize

Simple CLI resizing for square icons

NPM Version NPM Downloads

What?

Create one or more resized icons from a large png file

Why?

  • Mainly for app development, you have a large file (eg 512x512) and you want to make a bunch of smaller ones without the hassle of image editing
  • Resize many in one go
  • Intelligently naming the output
  • Fast and reliable

Requirements

You need ImageMagick - (brew install imagemagick or apt-get install imagemagick). Test if you have it by running convert in your command line.

install rupl

npm install iconresize -g

run it

iconresize 120 144 180 72

it will find the first appropriate png and resize (copy) to mypng120.png, mypng144.png, mypng180.png, mypng72.png

Which file is chosen?

It will find a file in the current directory which:

  1. is a .png file
  2. doesn't have numbers in the filename So, it is possible it will operate on the wrong file, in that case please move the appropriate target file to a new folder and rerun.

In action:

Screenshot

Readme

Keywords

none

Package Sidebar

Install

npm i iconresize

Weekly Downloads

2

Version

0.9.7

License

ISC

Last publish

Collaborators

  • dogfish