UNPKG

heic-d-code

Version:

A wasm build of libheif whose only purpose is to decode `.heif` image or the first image of a `.heic` for use in a browser.

14 lines (10 loc) 284 B
// An ImageData-like object because ImageData isn't transferrable export type DecodeOutput = [ ImageDataArray, number, number, ]; export type Module = { decode(inData: Uint8Array): DecodeOutput; }; export default function ModuleFactory(options?: unknown): Promise<Module>;