Kompari is a tool for reporting image differences. It is intended for use in snapshot testing. It can be used as a stand-alone CLI tool or as a Rust crate.
Basic installation, PNG
format only
$ cargo install kompari --features=cli
OR with all supported formats
$ cargo install kompari --features=cli,all-formats
$ kompari <left/image_dir> <right/image_dir> report
This version of Kompari has been verified to compile with Rust 1.74 and later.
Future versions of Kompari might increase the Rust version requirement. It will not be treated as a breaking change and as such can even happen with small patch releases.
Click here if compiling fails.
As time has passed, some of Kompari's dependencies could have released versions with a higher Rust requirement. If you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency.
# Use the problematic dependency's name and version
cargo update -p package_name --precise 0.1.1
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.