Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sharp-phash

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharp-phash - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

4

CHANGELOG.md

@@ -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 @@

4

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc