项目作者: test-images

项目描述 :
Color value-to-value image diff
高级语言: JavaScript
项目地址: git://github.com/test-images/compare-image-files.git
创建时间: 2021-05-25T04:50:39Z
项目社区:https://github.com/test-images/compare-image-files

开源协议:

下载


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.