Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackw01/gridslice
Command line tool for slicing an image on a grid. Good for spritesheets and that kind of thing.
https://github.com/jackw01/gridslice
Last synced: about 5 hours ago
JSON representation
Command line tool for slicing an image on a grid. Good for spritesheets and that kind of thing.
- Host: GitHub
- URL: https://github.com/jackw01/gridslice
- Owner: jackw01
- License: mit
- Created: 2018-10-07T02:00:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T06:13:44.000Z (about 6 years ago)
- Last Synced: 2024-09-16T01:04:14.502Z (about 2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gridslice
Command line tool for slicing an image on a grid. Good for spritesheets and that kind of thing.## Install
`pip install gridslice`## Usage
```
usage: gridslice [-h]
input_image_path start_x start_y width height slices_x slices_yCommand line tool for slicing an image on a grid.
positional arguments:
input_image_path Path to the input image file
start_x Start x
start_y Start y
width Slice width
height Slice height
slices_x Number of x slices
slices_y Number of y slicesoptional arguments:
-h, --help show this help message and exit
````start_x` and `start_y` represent the top corner of the area to take slices from. `width` and `height` are the size of each slice. `slices_x` and `slices_y` are the number of slices of the specified size to make in each direction.