Comparing version 6.1.0 to 6.1.1
@@ -209,4 +209,5 @@ import { IOBuffer } from 'iobuffer'; | ||
} | ||
case 8: { | ||
// Zlib compression | ||
case 8: | ||
case 32946: { | ||
// Zlib and Deflate compressions. They are identical. | ||
dataToFill = decompressZlib(stripData); | ||
@@ -213,0 +214,0 @@ break; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.guessStripByteCounts = void 0; | ||
exports.guessStripByteCounts = guessStripByteCounts; | ||
function guessStripByteCounts(ifd) { | ||
@@ -14,3 +14,2 @@ if (ifd.compression !== 1) { | ||
} | ||
exports.guessStripByteCounts = guessStripByteCounts; | ||
//# sourceMappingURL=hacks.js.map |
"use strict"; | ||
// Section 14: Differencing Predictor (p. 64) | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.applyHorizontalDifferencing16Bit = exports.applyHorizontalDifferencing8Bit = void 0; | ||
exports.applyHorizontalDifferencing8Bit = applyHorizontalDifferencing8Bit; | ||
exports.applyHorizontalDifferencing16Bit = applyHorizontalDifferencing16Bit; | ||
function applyHorizontalDifferencing8Bit(data, width, components) { | ||
@@ -17,3 +18,2 @@ let i = 0; | ||
} | ||
exports.applyHorizontalDifferencing8Bit = applyHorizontalDifferencing8Bit; | ||
function applyHorizontalDifferencing16Bit(data, width, components) { | ||
@@ -31,3 +31,2 @@ let i = 0; | ||
} | ||
exports.applyHorizontalDifferencing16Bit = applyHorizontalDifferencing16Bit; | ||
//# sourceMappingURL=horizontalDifferencing.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.readData = exports.getByteLength = void 0; | ||
exports.getByteLength = getByteLength; | ||
exports.readData = readData; | ||
const types = new Map([ | ||
@@ -24,3 +25,2 @@ [1, [1, readByte]], // BYTE | ||
} | ||
exports.getByteLength = getByteLength; | ||
function readData(decoder, type, count) { | ||
@@ -32,3 +32,2 @@ const val = types.get(type); | ||
} | ||
exports.readData = readData; | ||
function readByte(decoder, count) { | ||
@@ -35,0 +34,0 @@ if (count === 1) |
@@ -6,3 +6,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tagNames = exports.TiffIfd = exports.pageCount = exports.isMultiPage = exports.decode = void 0; | ||
exports.tagNames = exports.TiffIfd = void 0; | ||
exports.decode = decodeTIFF; | ||
exports.isMultiPage = isMultiPage; | ||
exports.pageCount = pageCount; | ||
const exif_1 = require("./tags/exif"); | ||
@@ -18,3 +21,2 @@ const gps_1 = require("./tags/gps"); | ||
} | ||
exports.decode = decodeTIFF; | ||
function isMultiPage(data) { | ||
@@ -24,3 +26,2 @@ const decoder = new tiffDecoder_1.default(data); | ||
} | ||
exports.isMultiPage = isMultiPage; | ||
function pageCount(data) { | ||
@@ -30,3 +31,2 @@ const decoder = new tiffDecoder_1.default(data); | ||
} | ||
exports.pageCount = pageCount; | ||
const tagNames = { | ||
@@ -33,0 +33,0 @@ exif: exif_1.tagsById, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decompressLzw = void 0; | ||
exports.decompressLzw = decompressLzw; | ||
const iobuffer_1 = require("iobuffer"); | ||
@@ -113,3 +113,2 @@ const CLEAR_CODE = 256; | ||
} | ||
exports.decompressLzw = decompressLzw; | ||
//# sourceMappingURL=lzw.js.map |
@@ -214,4 +214,5 @@ "use strict"; | ||
} | ||
case 8: { | ||
// Zlib compression | ||
case 8: | ||
case 32946: { | ||
// Zlib and Deflate compressions. They are identical. | ||
dataToFill = (0, zlib_1.decompressZlib)(stripData); | ||
@@ -218,0 +219,0 @@ break; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IOBuffer } from 'iobuffer'; | ||
@@ -3,0 +2,0 @@ export type BufferType = ArrayBufferLike | ArrayBufferView | IOBuffer | Buffer; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decompressZlib = void 0; | ||
exports.decompressZlib = decompressZlib; | ||
const pako_1 = require("pako"); | ||
@@ -10,3 +10,2 @@ function decompressZlib(stripData) { | ||
} | ||
exports.decompressZlib = decompressZlib; | ||
//# sourceMappingURL=zlib.js.map |
{ | ||
"name": "tiff", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "TIFF image decoder written entirely in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -252,4 +252,5 @@ import { IOBuffer } from 'iobuffer'; | ||
} | ||
case 8: { | ||
// Zlib compression | ||
case 8: | ||
case 32946: { | ||
// Zlib and Deflate compressions. They are identical. | ||
dataToFill = decompressZlib(stripData); | ||
@@ -256,0 +257,0 @@ break; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
190577
3651