Sprite unpack
Description
Utility script for cutting sprite sheets into sprite images. See examples section.
Installation
pip install sprite-unpack
Requirements
Python >= 3.9
Usage
sprite-unpack -i examples/doctor-doom-sheet.png -o ./examples/result
Example
I am fan of writing tiny games. Usually I use free sprite sheets for them. This script cuts sprite sheets into separate images ready for use in Godot, Unity, etc.
The result of cutting doctor-doom-sheet.png into images can be found in examples/result folder.
The algorithm is pretty straigtforward and can be easily understood from the following recording:
.
Caution! The script does not handle disjoint sprites with many particles.
Metadata
Release files for sprite-unpack 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sprite-unpack-0.1.1.tar.gz | 5.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sprite_unpack-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / sprite-unpack-0.1.1.tar.gz
| Download URL | sprite-unpack-0.1.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca185f8abbeae300cb13ceab9fe96ddb4c1e5d1cf4e3d03a77c0de53055a9ce6
|
|
BLAKE2b-256 checksum How to use checksums |
4c0fe9008dcf7ea12526aebcc2e13ab88e3df7ec3f4e496d99f2af7eeee49026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.2 Darwin/20.3.0
|
Release files / sprite_unpack-0.1.1-py3-none-any.whl
| Download URL | sprite_unpack-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb021a3335203f1e4fb969575368032835bdb699bb4224c3bc40db0ec6081dc5
|
|
BLAKE2b-256 checksum How to use checksums |
60409e96988d008e575f0ec6c15bfcf948f475d7c2a6d0f6f484a925fcfb72d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.2 Darwin/20.3.0
|
Security for sprite-unpack 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.