Rotates images, makes the created background transparent
Project description
Rotates images, makes the created background transparent
$pip install transparent-rotate
from transparent_rotate import rotate_with_adjusting,rotate_without_adjusting
i1 = r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png"
i2 = rotate_without_adjusting(
img="https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png",
angle=60,
save_path=None,
)
# The picture can easily be merged with other pictures
from cv2watermark import merge_image_percentage_width_position
merg3 = merge_image_percentage_width_position(
back=i1,
front=i2,
percentx=20,
percenty=20,
front_percentage_width=30,
save_path="f:\\cv2mergepics\\rotate1.png",
)
i1 = r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png"
i2 = rotate_with_adjusting(
img="https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png",
angle=60,
save_path=None,
)
merg3 = merge_image_percentage_width_position(
back=i1,
front=i2,
percentx=20,
percenty=20,
front_percentage_width=30,
save_path="f:\\cv2mergepics\\rotate2.png",
)
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
Built Distribution
Close
Hashes for transparent_rotate-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4278f5dfa3ba7eeeaf4b1d8767b06ce4c1c43f913e5823492f5a2676f47e0b58 |
|
MD5 | 3179e8f89e2a45ce4fa64d463e319939 |
|
BLAKE2b-256 | de4e96838b627580e53ba2136251af5160bb2a0d1c701b7253391ceb058b292a |