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)

32 lines (31 loc) 1.15 kB
/** @format */ import { Encoder, EncoderEncodeOptions } from './encoder.js'; /** * Encode a MemoryImage to the TIFF format. */ export declare class TiffEncoder implements Encoder { /** * Indicates if the encoder supports animation. */ private _supportsAnimation; /** * Gets the value indicating whether the encoder supports animation. * @returns {boolean} True if animation is supported; otherwise, false. */ get supportsAnimation(): boolean; /** * Gets the sample format for the given image. * @param {MemoryImage} image - The image to get the sample format for. * @returns {number} The sample format. * @throws {LibError} If the format type is unknown. */ private getSampleFormat; /** * Encodes the given image to the TIFF format. * @param {EncoderEncodeOptions} opt - The encoding options. * @param {MemoryImage} opt.image - The image to encode. * @param {boolean} [opt.skipExif] - Whether to skip embedding EXIF metadata (optional). * @returns {Uint8Array} The encoded image. */ encode(opt: EncoderEncodeOptions): Uint8Array; }