Skip to main content

Watermarking for images or PDF

Project description

MarkLord

MarkLord is a tool to add a visible watermark to images or PDF files on documents (e.g. ID card, salary slips, etc. ) you need to send to third parties. If the said third party is victim of a data breach, it will be more difficult for attackers to use those documents to steal your identity. Also if you put the name of the third party into the watermark, you can identify the source of the leak, or the third party that shared or sold your files without your consent.

Installation

From PyPI

pip install marklord

From GitHub

git clone https://github.com/secdev/marklord.git
cd  marklord
pip install .

Usage

usage: marklord [-h] [--output OUTPUT] [--font-name FONT_NAME] [--angle ANGLE] [--watermark_lines WATERMARK_LINES] [--interlining INTERLINING] [--separator SEPARATOR] [--no-noise] [--color COLOR] [--alpha ALPHA] [--quiet] input text [text ...]

positional arguments:
  input
  text

options:
  -h, --help            show this help message and exit
  --output, -o OUTPUT
  --font-name, -f FONT_NAME
  --angle, -a ANGLE
  --watermark_lines, -l WATERMARK_LINES
  --interlining, -I INTERLINING
  --separator, -s SEPARATOR
  --no-noise
  --color, -c COLOR     RGBA color as 4 comma separated decimal numbers from 0 to 255
  --alpha, -A ALPHA     transparency coefficient between 0 and 255
  --quiet, -q

Examples

$ marklord idcard.jpg "only for ACME company 2025-12-04"
INFO:MarkLord:Opening [/home/specimen/idcard.jpg] (53.2 KB)
INFO:MarkLord:Watermarking [only for ACME company 2025-12-04]
INFO:MarkLord:Result saved to [/home/specimen/idcard-wm.jpg] (60.1 KB)

watermarked image

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

marklord-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

marklord-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file marklord-0.1.1.tar.gz.

File metadata

  • Download URL: marklord-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for marklord-0.1.1.tar.gz
Algorithm Hash digest
SHA256 26dbeeb71eaf7766fb324e2c1e7cb405d5f980e44fb2c03acd1d2335db9903b8
MD5 d20238356c87ef7da040dd8c2ef95205
BLAKE2b-256 5d704b08582c800904248ed41cbc8c260470baae09c5bcedeaf3e1c37a9ab5fa

See more details on using hashes here.

File details

Details for the file marklord-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: marklord-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for marklord-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dce342af521094bb1c09afb8b5a8996703b4b07c6c7e5e53156a63a2e798bbd7
MD5 295465c5bac7ed553549c5da04397efc
BLAKE2b-256 bc657c011f03b3c861ebc8aa35d285ece62b6107d3be06bc63bd3564b4556cb8

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