I am looking for a way to verify images that are auto-generated during CI/automated testing. For example, I would like to run a simulation, plot the result with Plots.jl or Makie.jl, and then verify the resulting PNG file. I have found this percentage difference script, but I was wondering if there is a package readily available that does such things in a smarter way. Some features that would also be nice:
- Compare a generated image against a reference image but allow for small differences due to different rendering backends (i.e., Linux vs. macOS vs Windows)
- Allow to test various properties in a convenient way (e.g., image size matches, color space matches etc.)
- Calculate something like an “approximate” hash that can be used to compare generated images against a has value, without having to store the reference as an image file.