Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 32,811 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.