use image_watermark::*;
let lines = vec![
Line::new(
TEST_FONT,
128.0,
colors::from(TEST_WATERMARK_COLOR),
"the quick brown fox jumps over the lazy dog",
)
.unwrap(),
];
let ops = vec![
Op::Scale(0.8),
Op::Crop(0.5, 0.8),
Op::Watermark(0.8, lines),
];
let out_buf = apply(TEST_INPUT_IMAGE.to_vec(), ops).unwrap();
let out_path = std::path::Path::new("./output.png");
std::fs::write(&out_path, &out_buf).unwrap();
-
Notifications
You must be signed in to change notification settings - Fork 0
chakrit/image-watermark
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Crate for simple cropping and watermarking of images.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published