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.8.tar.gz
(2.8 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27acca6d0d60dade94f7d0a16e950baba4054d27be2a03be8cef6205c3623362 |
|
MD5 | 20243f228709b366db4cf1842680ef4c |
|
BLAKE2b-256 | d2cc79a0d08f89e1abf8673da241c569fbb05d47b33c9004acfcfe9d7fd41755 |