Crates.io | image-diff |
lib.rs | image-diff |
version | 0.1.13 |
source | src |
created_at | 2020-05-25 14:03:32.824822 |
updated_at | 2020-05-30 09:27:12.224023 |
description | An image diff library written in rust |
homepage | |
repository | https://github.com/zeroclock/image-diff |
max_upload_size | |
id | 245577 |
size | 148,034 |
An image diff library written in rust
pub fn diff(before: &DynamicImage, after: &DynamicImage) -> Result<DynamicImage>
[dependencies]
image = "0.23.4"
image-diff = "0.1.0"
let before = image::open("before.png");
let after = image::open("after.png");
let image_diff = diff(&before, &after).unwrap();
image_diff.save("image_diff.png");