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 hashes)
Built Distribution
Close
Hashes for image_jointer-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ef78ac5c3337cf0ebe31ffac59d1ace33f5d5a4efd0bb6a9dc3b5b97f46823 |
|
MD5 | 34f42b1e98b91751c168828b2e659dce |
|
BLAKE2b-256 | cb04ab23ad1a3431e2466504d6d45b4c430c75cb77f500e29610a080a6dc1174 |