Browse Source

Merge pull request #97 from kilburn/master

Allow passing a pixel diff function as option
pull/103/head
James Cryer 8 years ago committed by GitHub
parent
commit
e496b5f94a
  1. 4
      resemble.js

4
resemble.js

@ -690,6 +690,10 @@ URL: https://github.com/Huddle/Resemble.js
errorPixel = errorPixelTransform[options.errorType];
}
if(options.errorPixel && typeof options.errorPixel === "function") {
errorPixel = options.errorPixel;
}
pixelTransparency = isNaN(Number(options.transparency)) ? pixelTransparency : options.transparency;
if (options.largeImageThreshold !== undefined) {

Loading…
Cancel
Save