An open API service indexing awesome lists of open source software.

https://github.com/rysuds/exsprite

A Python CLI tool for extracting sprites from spritesheets
https://github.com/rysuds/exsprite

2d-graphics cli extracting-sprites game-development image-processing python3 sprites spritesheet spritesheets

Last synced: 2 days ago
JSON representation

A Python CLI tool for extracting sprites from spritesheets

Awesome Lists containing this project

README

          

# ![Exsprite Logo](/assets/title.png)
A CLI tool for extracting sprites from spritesheets!

## Setup
#### Dependencies
```
- numpy
- scikit-image
- scipy
- fire
- matplotlib
- tqdm
```

#### Installation
The following will install all dependencies and create the CLI command
```
python setup.py install
```

## Usage

#### Grouping by rows
![Row Example](/assets/row_group_image.png)
```
exsprite save --filepath
```

#### Grouping by columns
![Column Example](/assets/column_group_image.png)
```
exsprite save --filepath --group col
```

#### Custom output folder
By default an output folder with your grouped sprites will be generated in the same directory as your spritesheet. If you'd like to set the name/location of the output folder path you can do
```
exsprite save --filepath --folderpath
```