Skip to content

Releases

v8.0.0

Choose a tag to compare

@mourner mourner released this 06 Oct 11:03

Brings pixelmatch-cpp up to date with pixelmatch v8: on every fixture, it returns the same mismatch counts and diff images as JS v8. Versions now follow JS from here on.

Breaking changes

  • New color metric: OKLab HyAB with toe-corrected lightness replaces YIQ, so mismatch counts change. threshold keeps its 0–1 range and 0.1 default, but may need re-tuning.
  • Options struct: the positional threshold and includeAA arguments are replaced by mapbox::Options.
  • Checkerboard by default: semi-transparent pixels are now blended against a checkerboard. Set checkerboard = false for the old white blending.
  • C++17 is now required.

New options

  • alpha, aaColor, diffColor, diffColorAlt, diffMask: control how the diff image is drawn.
  • checkerboard: picks the background for semi-transparent pixels.
  • ignoreMask: skips masked pixels.
  • windowSize: returns the max diff count over N×N windows instead of the total.

Improvements

  • Better anti-aliasing detection for semi-transparent pixels.
  • Faster than JS v8 on the shared benchmark (~4.2 vs ~8.9 ms per round), thanks to a per-call color cache. Calls share no state, so pixelmatch stays thread-safe.
  • The overload that takes row strides is now documented and tested.

Tests and CI

  • All JS fixtures and unit tests are ported.
  • New tests check that the stride overload matches the tightly packed one.
  • CI treats warnings as errors and runs the tests under the address and undefined-behavior sanitizers.

v0.10.0

v0.10.0 Pre-release
Pre-release

Choose a tag to compare

@kkaefer kkaefer released this 28 Sep 12:29
move header to include/mapbox folder

v0.9.0

v0.9.0 Pre-release
Pre-release

Choose a tag to compare

@jfirebaugh jfirebaugh released this 20 Nov 22:34
Namespace