0.0.13 • Published 8 years ago

png-compare v0.0.13

Weekly downloads
10
License
ISC
Repository
github
Last release
8 years ago

PNG-COMPARE

Build Status

Description

This module uses imagemagick's compare command to compare two identically sized png images.

(baseline, comparator, options*) ⇒ variance

Kind: function

Parameters

ParamTypeDescription
baselineStringthe location of the baseline png you want to compare against
comparatorStringthe location of the comparator png you want to compare to the baseline

Returns

NameTypeDescription
varianceNumberthe percentage of pixels that are different on the comparator png when compared to the baseline

Installation

npm install png-compare

Pre-requisites

Node

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.

Imagemagick

MacOS
  • brew install imagemagick
Ubuntu
  • sudo apt-get install imagemagick
0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.1

8 years ago