Pixelmatch Versions Save

The smallest, simplest and fastest JavaScript pixel-level image comparison library

v5.3.0

2 years ago

Upgrade pngjs dependency (used in the pixelmatch CLI) from v4 to v6.

v5.2.0

4 years ago
  • Added a diffColorAlt option for coloring pixels that got darker differently (for differentiating between "added" and "removed" parts). #87 (h/t @tristen)
  • Dropped Node v4/v6 support in the binary.

v5.1.0

4 years ago

Added diffMask option. #73 (h/t @tmeasday)

v5.0.2

4 years ago
  • Fix input validation failing in some Jest environments. #62

v5.0.1

4 years ago
  • 🐞 Fix alpha option being ignored in case of identical images.
  • Slightly more robust input validation.

v5.0.0

4 years ago
  • ⚠️ Breaking: update to ES6 syntax, dropping Node <6.4 and IE11 support.
  • 🎨 Added configurable diff output (options alpha, aaColor, diffColor) (@dreignier @VP-)
  • ⚡️ Improve matching performance by ~35%.
  • ⚡️ Bypass detailed comparison when image data is identical, significantly improving performance when running tests on CI #60 (thanks to @bontscho).
  • Fix anti-aliasing detection on image edges #51 (@IvanSanchez).
  • Produce a meaningful error when image data is in the wrong format #53 (thanks to @LearningNerd)
  • CLI: return non-zero exit code when images differ #54 (@maio).
  • CLI: make diff output optional.
  • Make the published NPM module smaller.

v4.0.2

7 years ago

Fixed the command-line to properly handle the case when threshold is not provided.

v4.0.1

8 years ago
  • Updated dependencies (including pngjs to remove npm install warning).
  • Fixed a bug where the command line could sometimes fail.

v4.0.0

8 years ago
  • Breaking: switched to a much more accurate color difference metric based on recent research. As a side effect, the threshold scale changed — bump your old value by about ~70%.
  • Changed processing of alpha-channel (blending to white instead of black when comparing images)
  • Added an option to skip diff image creation (by passing null as the output argument)

v3.0.0

8 years ago
  • Breaking: changed the API to accept options object literal (with threshold and includeAA properties) rather than arguments.
  • Breaking: changed threshold to be relative to YUV distance (not squared); this means you'll have to change the threshold values you're currently using to sqrt(threshold).
  • Added usage examples for Node & browsers in the readme.