diff --git a/lib/utils.js b/lib/utils.js index f0e1964..a38ceff 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -143,7 +143,7 @@ exports.calcDiffImage = async (img1, img2, comparator, {highlightColor, shouldCl for (let y = 0; y < maxHeight; y++) { for (let x = 0; x < maxWidth; x++) { - if (y > minHeight || x > minWidth) { + if (y >= minHeight || x >= minWidth) { markDiff(x, y); // Out of bounds pixels considered as diff continue; }