romankh3 / image-comparison

Published on Maven Central Java Library that compares 2 images with the same sizes and shows the differences visually by drawing rectangles. Some parts of the image can be excluded from the comparison. Can be used for automation QA tests.
https://t.me/romankh3
Apache License 2.0
343 stars 105 forks source link

[BUG]The two png are mismatch, but always return a matched result. #248

Open bonnie-shi opened 9 months ago

bonnie-shi commented 9 months ago

Describe the bug The two png are mismatch, but always return a matched result.

To Reproduce Steps to reproduce the behavior:\

  1. I use ImageComparison to compare png on my ci test case. most png compared result return rightly, but recently, i have two png always return matched. but infact they are diffrent.
  2. see two png to compare.

Expected behavior return MISMATCHED

Screenshots

Desktop (please complete the following information):

Baseline: MCase1-1

bonnie-shi commented 9 months ago

The two image is created by SVG convert to PNG.

MikeMCrank commented 6 months ago

Have you set tolerance and threshold values both to 0?