Skip to main content

Pillow for jsw.

Project description

jsw-pillow

Pillow for jsw.

installation

pip install jsw-pillow -U

usage

  • watermark

Watermark

Watermark 水印的基本生成API。

Alt text

# 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.

Alt text

Project details


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.23.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

jsw_pillow-1.0.23-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file jsw_pillow-1.0.23.tar.gz.

File metadata

  • Download URL: jsw_pillow-1.0.23.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.0 Darwin/21.6.0

File hashes

Hashes for jsw_pillow-1.0.23.tar.gz
Algorithm Hash digest
SHA256 2e92f28cdd0dda378fb5cec20bc059317ac2e0cb2000b7d41a2bf3372888ea46
MD5 92a240ae77f189076125c9974b774a45
BLAKE2b-256 39994f136dc1ea3c9bd0b57258cc76ad6fbb4da39f64f34c7fc031fe48adca59

See more details on using hashes here.

File details

Details for the file jsw_pillow-1.0.23-py3-none-any.whl.

File metadata

  • Download URL: jsw_pillow-1.0.23-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.0 Darwin/21.6.0

File hashes

Hashes for jsw_pillow-1.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 5411dba09ee78461d8f0d956752e30c154c3e1e7772eb2302fe155cd0aaa70c1
MD5 136238ab90bdc44242bf6168b36d2403
BLAKE2b-256 64c17b60a0d5e39a06fb86eb7e9b1d471a115264b847ba1403448b050aff0c8c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page