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.18.tar.gz
(2.8 MB
view hashes)
Built Distribution
Close
Hashes for jsw_pillow-1.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6f8f55b7783f17f228099b53b92f87fac49640afdab61f3d8b552ae03b9fd3f |
|
MD5 | 7d06fd6e4fc7d721be93d9e76cdfac6c |
|
BLAKE2b-256 | 23bd04ba6f2aea479de9def91686ae029e07ff963725123fcb8a56fa72c60439 |