Skip to main content

Add a watermark to all images in a folder.

Project description

Watermark

A simple command-line tool to add a watermark to all images in a folder. This package uses the Python Imaging Library (PIL) to add a watermark (logo) with customizable position, transparency, rotation, and scale.

Installation

Install the package using pip:

pip install MarkMyImage

Usage

After installing the package, you can use the mmi command in your terminal or command prompt:

mmi input_folder watermark_path output_folder [--position X Y] [--transparency VALUE] [--rotation_angle VALUE] [--logo_scale VALUE]

Arguments

  • input_folder: Path to the folder containing the input images.
  • watermark_path: Path to the watermark logo image (PNG format recommended for transparency support).
  • output_folder: Path to the folder where the watermarked images will be saved.

Options

  • --position X Y: Coordinates (X, Y) of the top-left corner of the logo. Default: 0 0
  • --transparency VALUE: Transparency level of the logo (0-1, 0 is fully transparent, 1 is opaque). Default: 1
  • --rotation_angle VALUE: Rotation angle of the logo (in degrees). Default: 0
  • --logo_scale VALUE: Size of the logo in relation to the image (0-1, where 1 is equal to the size of the image). Default: 1

Example

mmi /path/to/input/folder /path/to/watermark/logo.png /path/to/output/folder --position 10 10 --transparency 0.7 --rotation_angle 45 --logo_scale 0.15

This will add the watermark logo to all images in the input folder with the specified options and save the watermarked images in the output folder.

License

MIT License

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

MarkMyImage-0.1.8.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

MarkMyImage-0.1.8-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file MarkMyImage-0.1.8.tar.gz.

File metadata

  • Download URL: MarkMyImage-0.1.8.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for MarkMyImage-0.1.8.tar.gz
Algorithm Hash digest
SHA256 0bc9bcbfc5c6baf36316b88bd49e0c07aee880a1cc4d39044b292902fecc0436
MD5 b2ec4e18160ceda461c25eb3373dc7fd
BLAKE2b-256 d87f2e1c8a733bdd4f059f6618dc26c13d107fc9f6c0d51848fe9b7f12c7b88e

See more details on using hashes here.

File details

Details for the file MarkMyImage-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: MarkMyImage-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for MarkMyImage-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9401a2af9852ac2cda69f93f2538a2a7eb80d566c3c52f493c7d2847a456e1ea
MD5 6a0dadc886e9641780037c072cc39461
BLAKE2b-256 e7434de6321cf7a699f145ec9a6e8667eacdbe4b6d46a3f16a29ab6f88c6ad48

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