sharp-phash
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -0,1 +1,5 @@ | ||
# 2.1.0 2023-02-16 | ||
* Allow to pass options for **sharp** builder | ||
# 2.0.0 2020-10-03 | ||
@@ -2,0 +6,0 @@ |
@@ -53,4 +53,4 @@ "use strict"; | ||
module.exports = async function phash(image) { | ||
const data = await sharp(image) | ||
module.exports = async function phash(image, options) { | ||
const data = await sharp(image, options) | ||
.greyscale() | ||
@@ -57,0 +57,0 @@ .resize(SAMPLE_SIZE, SAMPLE_SIZE, { fit: "fill" }) |
{ | ||
"name": "sharp-phash", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "sharp based perceptual hash implementation", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"eslint-plugin-promise": "^4.2.1", | ||
"sharp": "^0.26.1" | ||
"sharp": "^0.31.3" | ||
}, | ||
@@ -35,0 +35,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6695