JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 138
  • Score
    100M100P100Q37336F
  • License MIT

A simple node utility to resize images using imagemagick.

Package Exports

  • resource-scaler

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (resource-scaler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

resource-scaler

A simple node utility to resize images using imagemagick.

npm version

Requires imagemagick CLI tools to be installed.

| Mac | Windows | |---|---|---|---| | brew install imagemagick | Download |

Installation

npm install -g resource-scaler

Usage

resource-scaler -i resources/480x320 -o resources/240x160 -s 0.5

Option Description
-i input folder
-o output folder
-s scale factor

Formats

  • jpg
  • png
  • gif
  • tif
  • bmp
  • svg
  • webp
  • ico

Tested .png and .jpg but should work with all the formats listed above.

Any issues please report.

Licensing Information

MIT license

This content is released under the MIT License.

Contributor Code of Conduct

Code of Conduct is adapted from Contributor Covenant, version 1.3.0