The data property is a Typed Array containing the pixel data. It is a
Uint8Array for 8bit images, a Uint16Array for 16bit images and a
Float32Array for 32bit images.
Other properties of IFD
size - number of pixels
width - number of columns
height - number of rows
bitsPerSample - bit depth
alpha - true if the image has an additional alpha channel
xResolution
yResolution
resolutionUnit
tiff.pageCount(data)
Returns the number of IFDs (pages) in the file.
tiff.isMultiPage(data)
Returns true if the file has 2 or more IFDs (pages) and false if it has 1.
This is slightly more efficient than calling pageCount() if all you need to
know is whether the file has multiple pages or not.