diffimg: binary tool for comparing images (#9668)

This tool uses existing libraries: image, imageio, imageio-lite,
imagediff to perform difference comparison for on-disk images.

We refactor renderdiff to use this tool instead of using
python dependencies.


Co-authored-by: Ben Doherty <bendoherty@google.com>
This commit is contained in:
Powei Feng
2026-02-10 14:42:30 -08:00
committed by GitHub
parent 19209a00e6
commit d6caa9dc0b
15 changed files with 469 additions and 352 deletions

View File

@@ -12,8 +12,8 @@
"view.dithering": "NONE"
},
"tolerance": { // [optional] Simple tolerance - single criteria
"max_pixel_diff": 5, // Max absolute difference per channel (0-255)
"allowed_diff_pixels": 0.1 // Percentage of pixels allowed to exceed (0-100%)
"maxAbsDiff": 0.0196, // Max absolute difference per channel (5/255)
"maxFailingPixelsFraction": 0.001 // Percentage of pixels allowed to exceed (0.1%)
}
},
{