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 PNG, JPEG and BMP images using Jimp.
Beta Features:
- Sprite sheet scaling by manipulating the data in JSON files.
- Spine scaling by manipulating the data in JSON and atlas files.
Installation
npm install -g resource-scaler
Usage
resource-scaler -i resources/scale-8 -o resources/scale-4 -s 0.5
Option | Description | Default |
---|---|---|
-i, --input | input folder | |
-o, --output | output folder | |
-s, --scale | scale factor | 1 |
-q, --quality | quality (0-100, PNG and JPEG only) | 100 |
-a, --algorithm | 1-51 | |
-n, --normalize | normalize the channels in the image | |
-v, --verbose | verbose | |
-h, --help | help |
1Algorithms
- 1 - bilinear
- 2 - nearestNeighbor
- 3 - bicubic
- 4 - hermite
- 5 - bezier
Formats
- jpg
- png
- bmp
Any issues please report.
Licensing Information
This content is released under the MIT License.
Contributor Code of Conduct
Code of Conduct is adapted from Contributor Covenant, version 1.4