Skip to content

Commit 16b6f4f

Browse files
Merge pull request #96 from gemini-testing/fix/create_diff_image/off_by_one
fix: createDiffImage off by one
2 parents 9792088 + cd9744b commit 16b6f4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ exports.calcDiffImage = async (img1, img2, comparator, {highlightColor, shouldCl
143143

144144
for (let y = 0; y < maxHeight; y++) {
145145
for (let x = 0; x < maxWidth; x++) {
146-
if (y > minHeight || x > minWidth) {
146+
if (y >= minHeight || x >= minWidth) {
147147
markDiff(x, y); // Out of bounds pixels considered as diff
148148
continue;
149149
}

0 commit comments

Comments
 (0)