UNPKG

fast-png-fork-ste

Version:

PNG image decoder and encoder written entirely in JavaScript

8 lines (7 loc) 503 B
import { IExternalBuffer } from './IExternalBuffer'; import { DecoderInputType, PngDecoderOptions, DecodedPng, ImageData, PngEncoderOptions } from './types'; export { hasPngSignature } from './helpers/signature'; export * from './types'; declare function decodePng(data: DecoderInputType, externalBuffer?: IExternalBuffer, options?: PngDecoderOptions): DecodedPng; declare function encodePng(png: ImageData, options?: PngEncoderOptions): Uint8Array; export { decodePng as decode, encodePng as encode };