Skip to content

Commit

Permalink
Tests: flatten to mid-grey before generating fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Nov 14, 2019
1 parent 88a3919 commit 11daa3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 11daa3b

Please sign in to comment.