2 releases
0.0.1 | Dec 5, 2023 |
---|---|
0.0.0 | Dec 5, 2023 |
#9 in #watermark
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 tooutput.jpg
lib.rs
:
img_watermarker
Minimal lib for watermarking images
Dependencies
~14MB
~250K SLoC