https://github.com/tomgp/decompose-sprites
a NodeJS based command line tool to split up spritesheets into their constituent images
https://github.com/tomgp/decompose-sprites
Last synced: 12 months ago
JSON representation
a NodeJS based command line tool to split up spritesheets into their constituent images
- Host: GitHub
- URL: https://github.com/tomgp/decompose-sprites
- Owner: tomgp
- License: bsd-3-clause
- Created: 2019-06-26T15:39:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T03:52:13.000Z (about 3 years ago)
- Last Synced: 2025-06-10T17:16:42.600Z (12 months ago)
- Language: JavaScript
- Size: 3.38 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A command line tool to split up sprite-sheets into their constituent images.
I couldn't get any of those online sprite-sheet decomposers to work so here's a quick NodeJS take on the problem.
How to use it:
install it:
`npm i -g @tomgp/decompose-sprites`
run it:
```
node index.js -i ./test-images/badges-50-sprite.png -w 50 -h 50 -o ./test-images/output
./test-images/badges-50-sprite.png 50 50
```
Options
```
-V, --version output the version number
-i, --image [path] input image [path]
-w, --width [pixels] sprite width [pixels]
-h, --height [pixels] sprite height [pixels]
-o, --outdir [path] output directory [path]
-h, --help output usage information
```