Skip to main content


Project description





安装 Pillow:

pip install Pillow



python3 watermark/ -m '测试水印' -f weixiaobao.jpg


运行 python3 -h

usage: [-h] [-f FILE] [-m MARK] [-o OUT] [-c COLOR] [-s SPACE]
                    [-a ANGLE] [--size SIZE] [--opacity OPACITY]


optional arguments:
  -h, --help               show this help message and exit
  -f FILE, --file FILE     image file path or directory
  -m MARK, --mark MARK     watermark content
  -o OUT, --out OUT        image output directory, default is ./output
  -c COLOR, --color COLOR  font color like '#000000', default is #F4F4F4
  -s SPACE, --space SPACE  space between watermarks, default is 60
  -a ANGLE, --angle ANGLE  rotate angle of watermarks, default is 30
  --size SIZE              font size of text, default is 25
  --opacity OPACITY        opacity of watermarks, default is 0.4

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for watermark2, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size watermark2-1.0.3-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size watermark2-1.0.3.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page