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.20.tar.gz
(2.8 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1aa265421a546a7b4d479f2ac37efbfb505f9fd2c2bd9a3df37bab64bdcb451 |
|
MD5 | 47e44177b29d5a3a5eeee97e1ad8779b |
|
BLAKE2b-256 | 2d36733f549258e3382067ef4fc05eae23153d73e8db3574668355c692649aa5 |