Skip to content

test-images/compare-image-files

Repository files navigation

Compare Image Files

Color value-to-value diff

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.

Instalation & Usage

Tested on NodeJS v15 & v16

  1. git clone <<this repo>>
  2. npn install
  3. Open the *.config.js files.
  4. 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.
  5. node index <<config>>, such as node 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.

About

Color value-to-value image diff

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published