This module uses imagemagick's compare command to compare two identically sized png images.
Kind: function
Param | Type | Description |
---|---|---|
baseline | String |
the location of the baseline png you want to compare against |
comparator | String |
the location of the comparator png you want to compare to the baseline |
Name | Type | Description |
---|---|---|
variance | Number |
the percentage of pixels that are different on the comparator png when compared to the baseline |
npm install png-compare
This module is tested on Node versions 4.x, 5.x, 6.x and 7.x via Travis-CI. The status of these tests can be seen on the module's travis page.
brew install imagemagick
sudo apt-get install imagemagick