Pillow for jsw.
Project description
jsw-pillow
Pillow for jsw.
installation
pip install jsw-pillow -U
usage
- watermark
Watermark
Watermark 水印的基本生成API。
# watermark
from jsw_pillow import Watermark
# watermark - single
im1 = Watermark.multiple(
source='./__tests__/assets/test.png',
mark='js.work',
font_size=50,
angle=45,
position='center',
color=(0, 255, 0, int(255 * 0.5)),
)
# watermark - multiple
im2 = Watermark.multiple(
source='./__tests__/assets/test.png',
mark='js.work',
font_size=50,
angle=45,
color=(0, 255, 0, int(255 * 0.5)),
)
positions
Only for single watermark.
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
jsw_pillow-1.0.9.tar.gz
(2.8 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976ff57a67a4bf15c2b5379ab8b4b95ba39df5d963b3cf79eba7b03500cdf1d8 |
|
MD5 | c327b5a505830ed1212f491eaf003b32 |
|
BLAKE2b-256 | 9281974956c1eb7e9ef21861779d056b1baee2621b991c8cd04c5092de0fc736 |