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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db04683d9fe463a3a6e9243cb1180a6479e83a74bee29a52ac732f740c340355 |
|
MD5 | 4585ad85e3372f0e6340af3cff009e58 |
|
BLAKE2b-256 | 53f62737fed7493c0459d0c560caf40fa7e2b1710aaafa1b1631332d0559e3a2 |
Close
Hashes for pjsekai_background_gen_pillow-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f831eb71e638a585e8479408dfa148c60ba1f17b17d33025bd8f7b5903a08866 |
|
MD5 | 0033c3fe886b500e846ba91fc12171ba |
|
BLAKE2b-256 | 2dd0495ceb200855fb43264107ff7aa7ac2cc435fdca8d3d14e0712740a9a290 |