0.0.4 • Published 5 years ago

gm-img v0.0.4

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

gm-img

A tool to merge images for game maker studio 2

Install

using npm install -g gm-img to install

Usage

Usage: gmm [options] [command]

a tools to merge images for game maker studio 2

Options:
  -V, --version        output the version number
  -n, --name <name>    the name of the result image (default: "result")
  -s, --start <start>  the index of start image which is sorted by name,start f rom 0 (default: 1)
  -d, --dir <dir>      the dir of the images (default: "E:\\github\\merge-img")
  -h, --help           output usage information

Commands:
  m [imgs...]          merge images

Use With Node

const gmImg = require('gm-img');

gmImg({
    name: 'result', // String, the result file name
    start: 1,       // Number, the start image
    dir: `${process.cwd}`,  // String, the path of the images' dir
    imgs: [imagePath...],   // the images' path list, when it's not empty, the params 'start' and 'dir' will not work
}, () => {
    // callback function
});
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago