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: 10 10--transparency VALUE
: Transparency level of the logo (0-1, 0 is fully transparent, 1 is opaque). Default: 0.5--rotation_angle VALUE
: Rotation angle of the logo (in degrees). Default: 30--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: 0.2
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
Release history Release notifications | RSS feed
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.6.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for MarkMyImage-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636c7c6c53cd865bbad453902e23a37e7ee088bafa2dc88866f188ccc8253021 |
|
MD5 | 1aeddb9820704256091722a42d50dc8e |
|
BLAKE2b-256 | ed86f2cd254824ca3641ed38bf87d5f3f877035a90ed994c0856e0a2adb5119f |