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.15.tar.gz
(2.8 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb5d8fd7fe5e19eff807d257f459ec048a98a56f81748c996530edc971f8d48 |
|
MD5 | 9edad0b9e5585866e680171b697a1427 |
|
BLAKE2b-256 | ac38d8302a30a5268a1b13801f9d17d22f0c0ece508672e356e3a504986404d4 |