
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.
$ npm install tiff
This package is written using ES2015 features. It is natively compatible with recent versions of Google Chrome and Node.js. You can transpile it with a tool like babel if you need to support more JavaScript engines.
The library can currently decode greyscale and RGB images (8, 16 or 32 bits). It does not support any compression algorithm yet.
The package is in early development and API should be considered unstable.
I am currently only focused on extending TIFF format support and will work on the API afterwards.
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 depthxResolution
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 56,539 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.