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.7.tar.gz
(2.8 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1833350a4d0359ce02dd2f5cb832462190d577f61c51c648ac24af8c618f036a |
|
MD5 | 8b01e7dc231a7a31a95e5e0683ef6dce |
|
BLAKE2b-256 | f5095f48eb271072dc86ee94547f35fc4bdca5e46dd659a3d489bd91cc8fe4e6 |