1.1.1 • Published 2 years ago

@edward1993/resize-js v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

resize-js

npm (scoped) Build Status

Powerful yet simple image manipulation tool

NOTE: This tool uses sharp for image manipulation. More info here

Announcements

New v1.1.0 version is here. Check out the Release Notes.\ With this new release it is possible specify 'grayscale' argument only skipping 'width'.\ New output parameter is added which allows you to specify where to save your "modified" images.

Install

npm i -g @edward1993/resize-js

Usage

Usage: resize-js [options]

Options:
  --version        Show version number                                 [boolean]
  --file, -f       file or glob                              [string] [required]
  --width, -w      width of the output image in pixels                  [number]
  --grayscale, -g  Convert to grayscale               [boolean] [default: false]
  --output, -o     Output folder                         [string] [default: "."]
  -h, --help       Show help                                           [boolean]

Examples:
  resize-js -f ./img.png -w 25 -g
  resize-js -f ./img.png -g -o ./test # will create ./test folder if it doesn't exist

Copyright 2020

Limitations

Currently supported image formats are JPEG, PNG, WebP, GIF, SVG, TIFF

1.1.1

2 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago