Minimal lib for watermarking images, where a logo image will be added on top of a main image.
Add this to your Cargo.toml
file
[dependencies]
img_watermarker = "0.0.1"
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 tooutput.jpg