* Calculates the perceptual hash * @returns the perceptual hash * @example * ```ts * import { Jimp } from "jimp"; * * const image = await Jimp.read("test/image.png"); * * image.hash(); * ```
(image: I)
| 35 | * ``` |
| 36 | */ |
| 37 | pHash<I extends JimpClass>(image: I) { |
| 38 | const pHash = new ImagePHash(); |
| 39 | return pHash.getHash(image); |
| 40 | }, |
| 41 | |
| 42 | /** |
| 43 | * Generates a perceptual hash of the image <https://en.wikipedia.org/wiki/Perceptual_hashing>. And pads the string. Can configure base. |
nothing calls this directly
no test coverage detected
searching dependent graphs…