
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
TIFF image decoder written entirely in JavaScript.
Maintained by Zakodium
npm i tiff
The library can currently decode greyscale and RGB images (8, 16 or 32 bits). It supports LZW compression and images with an additional alpha channel.
Images compressed with Zlib/deflate algorithm are also supported.
Decodes the file and returns TIFF IFDs.
Each decoded image is stored in an IFD
.
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.
size
- number of pixelswidth
- number of columnsheight
- number of rowsbitsPerSample
- bit depthalpha
- true
if the image has an additional alpha channelxResolution
yResolution
resolutionUnit
Returns the number of IFDs (pages) in the file.
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.
FAQs
TIFF image decoder written entirely in JavaScript
The npm package tiff receives a total of 42,666 weekly downloads. As such, tiff popularity was classified as popular.
We found that tiff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.