Skip to main content

pjsekai_background_gen_pillow

Python Versions

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")

CLI

You can run pjsekai_background_gen_pillow, pjbg or python -m pjsekai_background_gen_pillow from command line.

usage: pjsekai_background_gen_pillow [-h] [-b BACKGROUND] [-f FORMAT] base output

Generates PJSekai background image from Image.

positional arguments:
  base                  Base image file path, or "-" for stdin.
  output                Output image file path, or "-" for stdout.

optional arguments:
  -h, --help            show this help message and exit
  -b BACKGROUND, --background BACKGROUND
                        Background image file path.
  -f FORMAT, --format FORMAT
                        Output image format.

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.

Metadata

Release files for pjsekai-background-gen-pillow 0.3.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 pjsekai-background-gen-pillow 0.3.0
File Size Uploaded
pjsekai_background_gen_pillow-0.3.0.tar.gz 2.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pjsekai-background-gen-pillow 0.3.0
File Interpreter ABI Platform
pjsekai_background_gen_pillow-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 MB

Release files / pjsekai_background_gen_pillow-0.3.0.tar.gz

Download URL pjsekai_background_gen_pillow-0.3.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
268bf70193016837d5cbf5288fc990d3ec9ba5299b241288bda20622cc3eeb87
BLAKE2b-256 checksum
How to use checksums
189da9a3ad60164688a1535f2f2b66f96ba25daa7196db25524e7a76c0081c6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Windows/10

Release files / pjsekai_background_gen_pillow-0.3.0-py3-none-any.whl

Download URL pjsekai_background_gen_pillow-0.3.0-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bc8e04e3bb5d8a95508f08107b71c0f8490cb2102d9171874d858b1c557d2c0a
BLAKE2b-256 checksum
How to use checksums
9a43c146c98a66698b1c8ddbb028a99dafeee8d857ab64282e87174fa356659f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Windows/10

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

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