pack-image
v2.0.0
Published
A very simple tool for packing images
Downloads
14
Maintainers
Readme
pack-image
pack-image is a very simple tool for packing images.
Installation
npm install pack-image -gUsage
pack-image ./path/to/*.png --output packed.png --json packed.jsonexample
| Filename | Image |
----|----|
| fish.png |
|
| police_car.png |
|
| spanner.png |
|
| squirrel.png |
|
pack-image "**/images/**.png" --output packed.png --json packed.json --padding 2packed.png:

packed.json:
{
"squirrel": {
"width": 64,
"height": 64,
"x": 0,
"y": 0
},
"police_car": {
"width": 48,
"height": 48,
"x": 66,
"y": 0
},
"fish": {
"width": 32,
"height": 32,
"x": 66,
"y": 50
},
"spanner": {
"width": 16,
"height": 16,
"x": 0,
"y": 66
}
}