Skip to main content

C++ implementation of the pixelmatch library

I wanted a simple way to do image comparisons on one of my other projects, so I ported the pixelmatch library to C++17.

Example output

expectedactualdiff
1diff
1diff
1diff

The library itself is a straightforward port, written using modern C++ infrastructure and a polyfill for the C++20 std::span, and with additional infrastructure such as:

  • Additional tests to reach 100% code coverage.
  • Fuzz tests.