Compares 2 images on strict color matching, NO psychovisual aproximation. Unique to other projects I can find on npm/GitHub is that this uses the very fast node-sharp. While sharp is scripted using JavaScript, the bulk of the image procssing is a C lib libvips.
Tested on NodeJS v15 & v16
git clone <<this repo>>
npn install
- Open the
*.config.js
files. - Edit the destRootFolder (where all output goes), orig (source folder), compare (folder to compare against orig), destSub (image sub=folder), & pairs (file name pairs to compare) values for your project.
node index <<config>>
, such asnode index avif-tests.202105
Detailed stats on the diffs & images will be created in the destRootFolder folder(s), & you will get some stats an pass/fail summeries in the console.