The smallest, simplest and fastest JavaScript pixel-level image comparison library
Upgrade pngjs
dependency (used in the pixelmatch
CLI) from v4 to v6.
diffColorAlt
option for coloring pixels that got darker differently (for differentiating between "added" and "removed" parts). #87 (h/t @tristen)Added diffMask
option. #73 (h/t @tmeasday)
alpha
option being ignored in case of identical images.alpha
, aaColor
, diffColor
) (@dreignier @VP-)Fixed the command-line to properly handle the case when threshold
is not provided.
pngjs
to remove npm install
warning).threshold
scale changed — bump your old value by about ~70%.diff
image creation (by passing null
as the output
argument)options
object literal (with threshold
and includeAA
properties) rather than arguments.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)
.