Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tiff

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiff - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

src/decode.js

10

package.json
{
"name": "tiff",
"version": "1.1.1",
"version": "2.0.0",
"description": "TIFF image decoder written entirely in JavaScript",

@@ -23,9 +23,9 @@ "main": "src/index.js",

"dependencies": {
"iobuffer": "^2.0.0"
"iobuffer": "^2.1.0"
},
"devDependencies": {
"mocha": "^2.3.4",
"mocha-better-spec-reporter": "^3.0.1",
"should": "^8.0.2"
"mocha": "^3.0.2",
"mocha-better-spec-reporter": "^3.0.2",
"should": "^11.1.0"
}
}

@@ -7,3 +7,3 @@ # tiff-js

TIFF image decoder written entirely in JavaScript
TIFF image decoder written entirely in JavaScript.

@@ -30,26 +30,18 @@ ## Installation

The package is in early development and API should be considered entirely unstable.
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.
### new tiff.TIFFDecoder(ArrayBuffer|Buffer)
### tiff.decode(data[, options])
Returns a new decoder instance.
Decodes the file and returns TIFF IFDs.
#### TIFFDecoder#decode()
#### IFD object
Decodes the file and returns a TIFF instance.
### TIFF object
The TIFF object has an `ifd` (Image File Directory) property which is an array containing all subimages.
### IFD object
Each decoded image is stored in an `IFD`.
#### IFD#data
##### IFD#data
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
##### Other properties of IFD

@@ -56,0 +48,0 @@ * `size` - number of pixels

'use strict';
exports.TIFFDecoder = require('./TIFFDecoder');
exports.decode = require('./decode');
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc