| Crates.io | blazediff |
| lib.rs | blazediff |
| version | 3.1.1 |
| created_at | 2026-01-14 06:06:05.988626+00 |
| updated_at | 2026-01-14 06:06:05.988626+00 |
| description | High-performance image diffing with block-based optimization and SIMD |
| homepage | |
| repository | https://github.com/teimurjan/blazediff |
| max_upload_size | |
| id | 2042284 |
| size | 12,141,790 |
High-performance image diffing with block-based optimization and SIMD acceleration.
cargo install blazediff
# Basic diff
blazediff image1.png image2.png -o diff.png
# With custom threshold (0.0 - 1.0)
blazediff image1.png image2.png -o diff.png -t 0.1
# JSON output for scripting
blazediff image1.png image2.png --json
use blazediff::{diff, DiffOptions};
let options = DiffOptions {
threshold: 0.1,
include_anti_aliased: false,
..Default::default()
};
let result = diff("image1.png", "image2.png", Some("diff.png"), &options)?;
println!("Different pixels: {}", result.diff_count);
3-4x faster than odiff, 8x faster than pixelmatch on 4K images.
MIT