#image #logo #watermark #debugging #jpeg #watermarking #watermarker

bin+lib img_watermarker

A minimal library for watermarking images

2 releases

0.0.1 Dec 5, 2023
0.0.0 Dec 5, 2023

#62 in #logo

MIT license

9KB
74 lines

img_watermarker

Minimal lib for watermarking images, where a logo image will be added on top of a main image.

Installation

Add this to your Cargo.toml file

[dependencies]
img_watermarker = "0.0.1"

Usage

use img_watermarker::watermark;

fn main() {
    watermark();
}

Run it in the command line with:

cargo run <logo_path> <image_path> <debug?> <output_path?>
  • <debug?> is optional and can be set to enable debugging output.
  • <output_path?> is optional. If not provided, the result of the two images will be saved to output.jpg

lib.rs:

img_watermarker

Minimal lib for watermarking images

Dependencies

~21MB
~216K SLoC