first commit

This commit is contained in:
2025-06-19 19:29:10 +02:00
commit 2d64d3804d
6 changed files with 212 additions and 0 deletions

25
README.md Normal file
View File

@@ -0,0 +1,25 @@
# Spritesheet Frame Rebuilder
Extract individual frames from spritesheet PNG images by detecting connected non-transparent regions and rebuild new spritesheets with options for scaling, padding, layout, and frame repetition.
---
## Features
- Automatically detects connected non-transparent regions as frames
- Supports scaling individual frames
- Pads frames to uniform size
- Sorts frames by their position in the original image (optional)
- Customizable output grid layout (columns & rows)
- Repeat frames multiple times for animation or sprite reuse
- Configurable via JSON config file and/or CLI arguments (`--help` for more info)
---
## Installation
Requires [Python 3.7+](https://www.python.org/downloads/) and [Pillow](https://pypi.org/project/pillow/):
```bash
pip install Pillow
```