A pipeline for converting images into stylized game sprites and sprite sheet generation.
Project description
pip install sprite-pipeline
You download images to a folder
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
sp_group --style painting.png -H 100 downloaded/
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
You open output.psd, resize layers, fix perspective, patch.
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
sp_pack
Congrats! You get packed spritesheet and UV coordinates in .txt
Features
- Foreground extraction
- Light correction
- Style transfer
- PSD building
- Spritesheet packing
CLI args
sp_group
sp_group folder_name/ --style STYLE_IMAGE -W MAX_WIDTH -H MAX_HEIGHT -f STYLE_FORCE -o OUTPUT_PSD
Creates PSD file containing group folder_name where each layer is a processed image with the specified maximum dimensions.
sp_pack
sp_pack psd_file.psd -o OUTPUT_DIR --format SPRITESHEET_IMAGE_FORMAT
For each group in PSD creates packed spritesheet image and UV coordinates file named group_name.fmt and group_name_uvs.txt.
Details
- BiRefNet to extract foreground
- RetinexNet to fix lights
- nst_vgg19 for Neural Style Transfer
- RealESRGAN_MtG to improve quality
- OpenCV to other filters and algorithms
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sprite_pipeline-0.2.6.tar.gz.
File metadata
- Download URL: sprite_pipeline-0.2.6.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6472861d3a6009463aa0d6b60b031e68f4c9776ad858b148a7b252ddbcf76380
|
|
| MD5 |
4e9044b50c05b9d6f04388e811f71026
|
|
| BLAKE2b-256 |
2ad21dfbc4b11bc86ff518ce00e8c8a1a3785252a90af09fff59bdb6d33b0f89
|
File details
Details for the file sprite_pipeline-0.2.6-py3-none-any.whl.
File metadata
- Download URL: sprite_pipeline-0.2.6-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
864250d92f4efab34a04dfcc1e180c3b7f8b721792604cddafbf04987f714887
|
|
| MD5 |
102ffed2cd216c252b7b79632f1c95c1
|
|
| BLAKE2b-256 |
13c32086e50d9badf4ca497a7f18dd88e0ad136e8a29bf39dbd21618a4ea7796
|