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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for jsw_pillow-1.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48be2d78cd5f6c5d7449e67dbccef6b4b2b9fbf42af4e1eb74f4a547017c1d9d |
|
MD5 | bb42d23b0702ef3ebfd06aed0578e920 |
|
BLAKE2b-256 | b9380c5355d2c9215c96ffae44fa418393bcf586308d3f21b6000656836f66d7 |