decodeAsync

fun decodeAsync(options: ImageDecodeOptions = definedExternally): Promise<ImageDecodeResult>(source)

The decode() method of the ImageDecoder interface enqueues a control message to decode the frame of an image.

MDN Reference