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(
original='./__tests__/assets/test.png',
mark='js.work',
font_size=50,
angle=45,
position='center',
text_color=(0, 255, 0, int(255 * 0.5)),
)
# watermark - multiple
im2 = Watermark.multiple(
original='./__tests__/assets/test.png',
mark='js.work',
font_size=50,
angle=45,
text_color=(0, 255, 0, int(255 * 0.5)),
)
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.2.tar.gz
(4.1 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dab2d6e3e733fae6fb2351cce3e83ca6fe3f8db926a51c1ec20edef14476488c |
|
MD5 | 59cbc818e5a4c82b873d30475d71c064 |
|
BLAKE2b-256 | a1f862ccdd7b9886d3bd8f05e6a729624ad66f0f6782d312a35d597b397ec9ab |