UNPKG
isomorphic-image-hash
Version:
latest (0.2.0)
0.2.0
0.1.0
A dhash library that works in both browsers and Node.js.
isomorphic-image-hash
/
dist
/
types
/
image-data
/
node.d.ts
8 lines
(7 loc)
•
252 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export
declare
const
getImageDataForNode
:
(
path
:
string
) =>
Promise
<{
width
:
number
;
height
:
number
;
data
:
Uint8ClampedArray
; } |
import
(
"pngjs"
).
PNGWithMetadata
| (
import
(
"jpeg-js"
).
UintArrRet
& {
comments
?:
string
[] |
undefined
; })>;