You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/plugins.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ export const initPlugin = (
161
161
height,
162
162
diffConfig
163
163
);
164
-
imgDiff=(diffPixels/width)*height;
164
+
imgDiff=diffPixels/(width*height);
165
165
166
166
if(isImgSizeDifferent){
167
167
errorMsg=`Images size mismatch - new screenshot is ${rawImgNew.width}px by ${rawImgNew.height}px while old one is ${rawImgOld.width}px by ${rawImgOld.height} (width x height).`;
0 commit comments