I tested the image comparison with a template image PDF which is a cropped version of the original PDF.
In that case, I have a perfect match with min_val is at 0.0.
If I set a threshold of 0.0 (= PASS only if there is an exact match) the test fails.
The fix is to compare with "minor or equal" threshold.
I tested the image comparison with a template image PDF which is a cropped version of the original PDF. In that case, I have a perfect match with
min_val
is at0.0
. If I set a threshold of0.0
(= PASS only if there is an exact match) the test fails. The fix is to compare with "minor or equal" threshold.