514792f1249f20b7566a4d497ae066bc729220b9
Spritesheet Frame Rebuilder
Fix 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+ and Pillow:
pip install Pillow
Credits
@koyu:
- Original script
Description
Fix 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.
Languages
Python
100%