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.3.tar.gz
(4.1 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dcf585e64a1628416f343ed7b9e97e0fbf63a93404db9f03544d06d7959c100 |
|
MD5 | 277734300573017a9ba1d3fb571e00d1 |
|
BLAKE2b-256 | c0d0e49862c7aa6375b1bead15660e6c5a41de092ee2a7a061bdf3cc3a27715b |