friendly-img-hash-js 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # friendly-friendly-img-hash-js
1
+ # friendly-img-hash-js
2
2
 
3
3
  A js implementation of https://docs.rs/img_hash/ which itself is based on the work of http://www.hackerfactor.com/.
4
4
 
@@ -132,7 +132,7 @@ const config = { output: Convert.options.BigInt };
132
132
  const result1 = hash(image1, config);
133
133
  const result2 = hash(image2, config);
134
134
 
135
- if (leven(result1, result2) <= 12) {
135
+ if (leven(result1.toString(), result2.toString()) <= 12) {
136
136
  console.log ('Images are very similar!');
137
137
  }
138
138
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "friendly-img-hash-js",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "User friendly algorithms for generating image hashes.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "mocha": "^10.2.0"
38
38
  },
39
39
  "dependencies": {
40
- "img-hash-js-core": "^1.0.4",
40
+ "img-hash-js-core": "^1.0.7",
41
41
  "jimp": "^0.22.10"
42
42
  }
43
43
  }