UNPKG

image-in-browser

Version:

Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)

41 lines 995 B
export class TiffInfo { get bigEndian() { return this._bigEndian; } get signature() { return this._signature; } get ifdOffset() { return this._ifdOffset; } get images() { return this._images; } get width() { return this._width; } get height() { return this._height; } get backgroundColor() { throw this._backgroundColor; } get numFrames() { return this._images.length; } constructor(opt) { this._images = []; this._width = 0; this._height = 0; this._backgroundColor = undefined; this._bigEndian = opt.bigEndian; this._signature = opt.signature; this._ifdOffset = opt.ifdOffset; this._images = opt.images; if (this._images.length > 0) { this._width = this._images[0].width; this._height = this._images[0].height; } } } //# sourceMappingURL=tiff-info.js.map