finscn / ipacker

A node.js tools for packing some images into one.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iPacker

A node.js tools for packing some images into one.


Getting started

First, download and install ImageMagick.

In Mac OS X, you can simply use Homebrew and do:

brew install imagemagick

Second, install Node.js.

Then, run

npm install

Help Info

node ipacker.js --help

Simple Examples

  • Pack all in one
  1. put all images into "./input" dir.

  2. run:

node ipacker.js  -p --name all-in-one

Note: --name , the packname doesn't include ext-name.

  1. the all-in-one.png will be created in "./output/pack".

  2. the mapping-info in "./output/pack/img-mapping"

More Advanced Examples

coming soon ...

About

A node.js tools for packing some images into one.

License:MIT License


Languages

Language:JavaScript 100.0%