Skip to main content

Puts watermark on images using relative or absolute coordinates.

from cv2watermark import (
    merge_image_percentage_height,
    merge_image_percentage_width,
    merge_image_percentage_height_position,
    merge_image_percentage_width_position,
    merge_image,
)

# Allowed image formats: url/path/buffer/base64/PIL/np
i2 = r"https://www.python.org/static/img/psf-logo.png"  # Transparent image from URL doesn't work! You have to download it before
i2 = r"F:\neuedownloads\psf-logo.png"
i1 = r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png"  

merg1 = merge_image(
    back=i1, front=i2, x=10, y=30, save_path="f:\\cv2mergepics\\merg1.png"
)
merg2 = merge_image_percentage_width(
    back=i1,
    front=i2,
    x=10,
    y=30,
    front_percentage_width=80,
    save_path="f:\\cv2mergepics\\merg2.png",
)
merg3 = merge_image_percentage_width_position(
    back=i1,
    front=i2,
    percentx=50,
    percenty=60,
    front_percentage_width=30,
    save_path="f:\\cv2mergepics\\merg3.png",
)
merg4 = merge_image_percentage_width(
    back=i1,
    front=i2,
    x=110,
    y=10,
    front_percentage_width=60,
    save_path="f:\\cv2mergepics\\merg4.png",
)
merg5 = merge_image_percentage_width_position(
    back=i1,
    front=i2,
    percentx=50,
    percenty=10,
    front_percentage_width=40,
    save_path="f:\\cv2mergepics\\merg5.png",
)
merg6 = merge_image_percentage_height(
    back=i1,
    front=i2,
    x=20,
    y=50,
    front_percentage_height=40,
    save_path="f:\\cv2mergepics\\merg6.png",
)
merg7 = merge_image_percentage_height_position(
    back=i1,
    front=i2,
    percentx=20,
    percenty=40,
    front_percentage_height=40,
    save_path="f:\\cv2mergepics\\merg7.png",
)

Metadata

Release files for cv2watermark 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cv2watermark 0.10
File Size Uploaded Provenance Actions
cv2watermark-0.10.tar.gz 4.2 kB Without provenance Details for cv2watermark-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cv2watermark 0.10
File Interpreter ABI Platform Actions
cv2watermark-0.10-py3-none-any.whl Python 3 none any Details for cv2watermark-0.10-py3-none-any.whl

Total release size: 9.7 kB

Release files / cv2watermark-0.10.tar.gz

Download URL cv2watermark-0.10.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e625d33de90454be296f309b89a0a22d96708d0caeb36cebd09bd5878c226cdf
BLAKE2b-256 checksum
How to use checksums
0706b7a9709265f91396a769f21942e6530afef854d963c6cc0e6875a0cae7d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / cv2watermark-0.10-py3-none-any.whl

Download URL cv2watermark-0.10-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdb62f9279d77f1497a71253852382421caa309d3090e0e1e990c94f764b5b98
BLAKE2b-256 checksum
How to use checksums
34cfd320310047b0c60bb53e1d87aac5d8759159e80e73962d18fa55c4a7973d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for cv2watermark 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page