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

img-hasher

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

img-hasher - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

18

index.d.ts

@@ -34,2 +34,12 @@ /* tslint:disable */

/**
* The Median hashing algorithm.
*
* The image is converted to grayscale, scaled down to `hash_width x hash_height`,
* the median pixel value is taken, and then the hash bits are generated by comparing
* the pixels of the descaled image to the mean.
*
* Median hashing in combiantion with preproc_dct is the basis for pHash
*/
Median = 1,
/**
* The Gradient hashing algorithm.

@@ -48,3 +58,3 @@ *

*/
Gradient = 1,
Gradient = 2,
/**

@@ -56,3 +66,3 @@ * The Vertical-Gradient hashing algorithm.

*/
VertGradient = 2,
VertGradient = 3,
/**

@@ -71,3 +81,3 @@ * The Double-Gradient hashing algorithm.

*/
DoubleGradient = 3,
DoubleGradient = 4,
/**

@@ -82,3 +92,3 @@ * The [Blockhash.io](https://blockhash.io) algorithm.

*/
Blockhash = 4,
Blockhash = 5,
}

@@ -85,0 +95,0 @@ /**

{
"name": "img-hasher",
"description": "A fast image hash generator and hamming distance calculator using multiple algorithms",
"version": "0.0.11",
"version": "0.0.12",
"main": "index.js",

@@ -27,9 +27,9 @@ "types": "index.d.ts",

"universal": "napi universal",
"version": "napi version && yarn format && git add .",
"napi:version": "napi version && yarn format && git add .",
"format": "prettier --write . --ignore-unknown && cargo +nightly fmt"
},
"devDependencies": {
"@napi-rs/cli": "^2.16.5",
"@types/node": "^20.10.0",
"prettier": "^3.1.0"
"@napi-rs/cli": "^2.18.0",
"@types/node": "^20.11.29",
"prettier": "^3.2.5"
},

@@ -55,12 +55,4 @@ "files": [

},
"packageManager": "yarn@4.0.2",
"repository": "https://github.com/imranbarbhuiya/img-hasher",
"optionalDependencies": {
"@imranbarbhuiya/img-hasher-win32-x64-msvc": "0.0.11",
"@imranbarbhuiya/img-hasher-darwin-x64": "0.0.11",
"@imranbarbhuiya/img-hasher-linux-x64-gnu": "0.0.11",
"@imranbarbhuiya/img-hasher-android-arm64": "0.0.11",
"@imranbarbhuiya/img-hasher-darwin-arm64": "0.0.11",
"@imranbarbhuiya/img-hasher-linux-x64-musl": "0.0.11"
}
"packageManager": "yarn@4.1.1",
"repository": "https://github.com/imranbarbhuiya/img-hasher"
}
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