| Crates.io | img_watermarker |
| lib.rs | img_watermarker |
| version | 0.0.1 |
| created_at | 2023-12-05 00:07:40.051849+00 |
| updated_at | 2023-12-05 00:10:52.261825+00 |
| description | A minimal library for watermarking images |
| homepage | |
| repository | https://github.com/ashgw/img_watermarker |
| max_upload_size | |
| id | 1058206 |
| size | 24,142 |
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 to output.jpg