diff --git a/resemble.js b/resemble.js index 31bdba3..3e8493d 100644 --- a/resemble.js +++ b/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) {