Skip to content

Commit

Permalink
Set scaleToSameSize to false when comparing images.
Browse files Browse the repository at this point in the history
We should not scale to the same size when comparing images because if they have different sizes, they are not equal by definition. The scaling introduces distortions that make it hard to find the real problem.
  • Loading branch information
rafaeldalsanto committed May 4, 2023
1 parent 5c4bfd5 commit 2abd769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compare/compareImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const compareImages = (config, fileName, viewport) => {
testImage,
{
ignore: 'nothing',
scaleToSameSize: true,
scaleToSameSize: false,
output: {
largeImageThreshold: 0,
transparency: 0.3
Expand Down

0 comments on commit 2abd769

Please sign in to comment.