Skip to main content

Kirikiri Sprite Synth

This is a simple tool to generate a sprite sheet from a set of images. It provides exactly the same sprite sheet as the one generated by the Kirikiri engine, which is used in many visual novels.

Usage

from PIL import Image
from kirikiri_sprite_synth import SpriteSynth


# Create a SpriteSynth object
synth = SpriteSynth(
    a_info_path='a_info.txt',
    # Path to a_info file, usually located at /fgimage/<character_name>a_info.txt
    b_info_path='b_info.txt',
    # Path to b_info file, usually located at /fgimage/<character_name>b_info.txt
    a_layers_info_path='a.txt',
    # Path to a layer info files, usually located at /fgimage/<character_name>/<character_name>a.txt
    b_layers_info_path='b.txt',
    # Path to b layer info files, usually located at /fgimage/<character_name>/<character_name>b.txt
    assets_path='assets',
    # Path to the assets folder, usually located at /fgimage/<character_name>
    character_name='character_name',
    # Name of the character, used to assist in locating the layer images
)

# Generate the sprite sheet
sprite: Image.Image = synth.draw(
    dress="私服",
    face="01",
    pose="1",
)

# Save the sprite sheet
sprite.save('sprite.png')

Installation

pip
pip install kirikiri-sprite-synth
pdm
pdm add kirikiri-sprite-synth
poetry
poetry add kirikiri-sprite-synth
conda
conda install kiri-kiri-sprite-synth -c conda-forge

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Senren * Banka: Great visual novel that inspired me to create this tool.

Metadata

Release files for krkr-sprite-synth 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for krkr-sprite-synth 0.2.0
File Size Uploaded Provenance Actions
krkr_sprite_synth-0.2.0.tar.gz 6.2 kB Without provenance Details for krkr_sprite_synth-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for krkr-sprite-synth 0.2.0
File Interpreter ABI Platform Actions
krkr_sprite_synth-0.2.0-py3-none-any.whl Python 3 none any Details for krkr_sprite_synth-0.2.0-py3-none-any.whl

Total release size: 14.2 kB

Release files / krkr_sprite_synth-0.2.0.tar.gz

Download URL krkr_sprite_synth-0.2.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
049b6c2ccd76ca5f46c27e0221664d8b0d74ade3097cb24f1f36cc3548ee3055
BLAKE2b-256 checksum
How to use checksums
f826111334715a05011e9635302acd97695c68e54aad59c3fa13ccdbc9c250c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.22.4 CPython/3.12.3 Linux/6.8.0-1021-azure

Release files / krkr_sprite_synth-0.2.0-py3-none-any.whl

Download URL krkr_sprite_synth-0.2.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39219a4b551447a1fd79a50ceefffcc81fd67693db076de2b87266182ab9cd1d
BLAKE2b-256 checksum
How to use checksums
9ef9ca7c253033d3420a5533457c130b9e0dd3540eaa0b9586fada4e7762b564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.22.4 CPython/3.12.3 Linux/6.8.0-1021-azure

Security for krkr-sprite-synth 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page