From 11daa3b4d1a05dcf4599961486a7c839341b11c1 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 14 Nov 2019 13:18:14 +0000 Subject: [PATCH] Tests: flatten to mid-grey before generating fingerprint --- test/fixtures/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fixtures/index.js b/test/fixtures/index.js index 1fdd6338..d8a5fa3e 100644 --- a/test/fixtures/index.js +++ b/test/fixtures/index.js @@ -13,6 +13,7 @@ const getPath = function (filename) { // Based on the dHash gradient method - see http://www.hackerfactor.com/blog/index.php?/archives/529-Kind-of-Like-That.html const fingerprint = function (image, callback) { sharp(image) + .flatten('gray') .greyscale() .normalise() .resize(9, 8, { fit: sharp.fit.fill })