Forum Discussion
Super easy way to put or watermark on a photo in bulk?
Yes, you can definitely use the command-line tool ImageKit to put watermark on a photo in bulk. It's a completely free and open-source tool designed for high-performance batch image processing, written in Rust. This makes it an excellent choice if you're looking for a free and programmatic way to put a watermark on a photo across an entire folder of images.
How to Use It to Put Watermark on a Photo
You need to build or install the tool first and then run it from your terminal. The tool's strength lies in its simplicity and power through a single command.
A basic command to put a watermark on a photo and all others in a folder looks like this:
bash
./imagekit \
-i /path/to/your/input/images \
-o /path/to/your/output/folder \
--watermark-text "Your Watermark Text" \
--watermark-position se \
--font-size 24 \
--watermark-color ffffff80
Let's break down what the flags mean:
- -i: Specifies the input directory containing your images.
- -o: Specifies the output directory for the watermarked images.
- --watermark-text: The text of the watermark you want to add.
- --watermark-position: Where to place the watermark (e.g., se for southeast/bottom-right, nw for northwest/top-left, center for the middle).
- --font-size: The size of the text in pixels.
- --watermark-color: The color in hex format. FFFFFF80 is semi-transparent white, while 000000FF is fully opaque black.
You may have previously been warned about or chosen to avoid a different tool also named ImageKit, which is a SaaS solution for media management and watermarking via the web. The tool discussed here is the open-source, command-line version hzbd/imagekit found on GitHub. This CLI tool is completely free and allows you to put watermark on a photo in bulk without using any third-party online service.