Build up image by jointing images
Project description
ImageJointer
Build up image by jointing images
install
pip install image_jointer
how to use
from image_jointer import JointAlign, ImageJointer
from PIL import Image
red = Image.new("RGBA", (100, 100), (255, 0, 0))
green = Image.new("RGBA", (100, 100), (0, 255, 0))
blue = Image.new("RGBA", (100, 100), (0, 0, 255))
jointed = (
ImageJointer(red)
.joint(green, JointAlign.SIDE_CENTER)
.joint(
ImageJointer(blue).joint(blue, JointAlign.SIDE_CENTER),
JointAlign.UNDER_LEFT
)
)
joint_img = jointed.to_image()
from image_jointer import JointAlign, ImageJointer
from PIL import Image
red = Image.new("RGBA", (100, 100), (255, 0, 0))
blank = Blank(50, 100)
green = Image.new("RGBA", (100, 100), (0, 255, 0))
jointed = (
ImageJointer(red)
.joint(blank, JointAlign.SIDE_CENTER)
.joint(green, JointAlign.SIDE_CENTER)
)
joint_img = jointed.to_image()
from image_jointer import JointAlign, ImageJointer
from PIL import Image
red = Image.new("RGBA", (100, 100), (255, 0, 0))
blue = Image.new("RGBA", (100, 200), (0, 0, 255))
jointed = ImageJointer(red).joint(blue, JointAlign.SIDE_CENTER)
joint_img = jointed.to_image()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
image_jointer-2.0.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file image_jointer-2.0.tar.gz.
File metadata
- Download URL: image_jointer-2.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ba67c1a44c238c8a51225e48e0f366d533caeca79cdea2c6f6d20a84f266490
|
|
| MD5 |
4d8bee0b8b4e279efb1f7ea258811aed
|
|
| BLAKE2b-256 |
212fc839b570e0b6350834c09ddc41fee7420a6cddfd38567c7b911d88c087b5
|
File details
Details for the file image_jointer-2.0-py3-none-any.whl.
File metadata
- Download URL: image_jointer-2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82ef78ac5c3337cf0ebe31ffac59d1ace33f5d5a4efd0bb6a9dc3b5b97f46823
|
|
| MD5 |
34f42b1e98b91751c168828b2e659dce
|
|
| BLAKE2b-256 |
cb04ab23ad1a3431e2466504d6d45b4c430c75cb77f500e29610a080a6dc1174
|