# @tomgp/decompose-sprites

> A command line tool to split up sprite-sheets into their constituent images.

Latest version **1.0.1** (published 2019-06-26) · BSD 3-Clause License license · 0 weekly downloads

## Install

```sh
npm install @tomgp/decompose-sprites
pnpm add @tomgp/decompose-sprites
yarn add @tomgp/decompose-sprites
bun add @tomgp/decompose-sprites
```

Provides the command `decompose-sprites`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-06-26 |
| First published | 2019-06-26 |
| Weekly downloads | 0 |
| License | BSD 3-Clause License |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | tom.g.pearson@gmail.com |
| Maintainers | tomgp |

## Links

- npm: https://www.npmjs.com/package/@tomgp/decompose-sprites
- Repository: https://github.com/tomgp/decompose-sprites
- Homepage: https://github.com/tomgp/decompose-sprites#readme
- Issues: https://github.com/tomgp/decompose-sprites/issues
- npm.io page: https://npm.io/package/@tomgp/decompose-sprites

## Dependencies (2)

- [jimp](https://npm.io/package/jimp.md) ^0.6.4
- [commander](https://npm.io/package/commander.md) ^2.20.0

## Recent versions

- 1.0.1 (latest) — 2019-06-26
- 1.0.0 — 2019-06-26

## 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
```

---
_Source: https://npm.io/package/@tomgp/decompose-sprites · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
