img_watermarker

Crates.ioimg_watermarker
lib.rsimg_watermarker
version0.0.1
sourcesrc
created_at2023-12-05 00:07:40.051849
updated_at2023-12-05 00:10:52.261825
descriptionA minimal library for watermarking images
homepage
repositoryhttps://github.com/ashgw/img_watermarker
max_upload_size
id1058206
size24,142
Ashref Gwader (AshGw)

documentation

README

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
Commit count: 27

cargo fmt