Comparing version 1.1.1 to 2.0.0
{ | ||
"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'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26309
12
783
64
1
Updatediobuffer@^2.1.0