game-asset-resizer
v0.0.5
Published
Resizer for game assets
Downloads
9
Readme
oclif-hello-world
oclif example Hello World CLI
Usage
$ npm install -g game-asset-resizer
$ gar COMMAND
running command...
$ gar (--version)
game-asset-resizer/0.0.5 darwin-arm64 node-v16.16.0
$ gar --help [COMMAND]
USAGE
$ gar COMMAND
...
Commands
gar help [COMMAND]
Display help for gar.
USAGE
$ gar help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for gar.
See code: @oclif/plugin-help
gar resize
Resize all images in path
USAGE
$ gar resize -m <value> -i <value> -o <value> [-c <value>] [-r]
FLAGS
-c, --compress=<value> [default: 50] The percent of compression, 100% for unchanged quality, default to 50%
-i, --input=<value> (required) Input directory
-m, --multiple=<value> (required) Resize the image to the nearest multiple of size
-o, --output=<value> (required) Output directory
-r, --ratio Keep the ratio when resizing, default false
DESCRIPTION
Resize all images in path
EXAMPLES
$ gar resize -i images/ -o output/ -m 16
See code: dist/commands/resize/index.ts