Skip to main content

No project description provided

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.24.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsw_pillow-1.0.24-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsw_pillow-1.0.24.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for jsw_pillow-1.0.24.tar.gz
Algorithm Hash digest
SHA256 d9ae7beefcf0fb11d0128f4122e7c8fdc605330589836496a352392c5be4b9f2
MD5 7304a0281f73e71460e501bfce4666b0
BLAKE2b-256 04f32eb30f34fc11adac4aabd86bbda4b7d3607bafb79dd3ea999e5bfad50669

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsw_pillow-1.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 1e07fd89c3b48099ee1ff339bd6e46ef36217f6e66a47ae1765bd45b7302b4f1
MD5 8e92c433a62af7be90743bfb7aa43e0b
BLAKE2b-256 529faaac6df1e141328d7996db3c1ae756a757927768de411977a527e6b7ab61

See more details on using hashes here.

Supported by

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