Generates PJSekai backgrounds with Pillow
Project description
pjsekai_background_gen_pillow
Generates PJSekai background image from Image.
Installation
pip install pjsekai_background_gen_pillow
Example
from PIL import Image
import pjsekai_background_gen_pillow as pjbg
generator = pjbg.Generator()
generator.generate(Image.open("path/to/image.png")).save("path/to/output.png")
API
Generator
Generater for background images.
Parameters
base : PIL.Image
Base background image. Defaults to Built-in background image.
.generate(image)
Generate background image from source image.
Parameters
source : PIL.Image
Source image.
Returns
PIL.Image
License
This library is licensed under GPLv3. test.png
is licensed under CC-BY-SA 4.0.
Project details
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
Close
Hashes for pjsekai_background_gen_pillow-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40484f13934a06e4dbf6e5bb849e7c76c3606c7bed3f0c243cc9f57495a9fbe6 |
|
MD5 | 99793102f8e9ea4735184dd8205505a2 |
|
BLAKE2b-256 | 48752c501ed468f61b0a5b996e9fdd7f006c14b31da74c02c91e9780b83386de |
Close
Hashes for pjsekai_background_gen_pillow-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43d4671f9e4e0abc8e5fcd76529dd43d3116fd56bdea3c5de7b3af0f56aabc33 |
|
MD5 | bc7e4edc30fd91cc9219e838317abd05 |
|
BLAKE2b-256 | be7327c226d7cc8a44a882e7e3492be43bd7916378c2ac0145af8739e43ba86a |