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.12.tar.gz
(2.8 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d2ecac3e5d67400249a89ed730ad2f2893c7c5bd2f548294042c1e0bc7d345c |
|
MD5 | 948515d6a7b592f323fc430b7924f767 |
|
BLAKE2b-256 | 378519d705a775b2f31d4e25d72702bcd0af8323c702ac1cda8bd364872a7c27 |