The ImageDecoder API intends to provide web authors random access to decoded images (as ImageBitmap) for each frame in a given image. The returned ImageBitmap objects can be used for drawing to canvas or WebGL (as well as any other future ImageBitmap use cases). Since the API is not bound to the DOM it may also be used in workers.


Today <img> elements don’t provide access to any frames beyond the first. They also provide no control over which frame is displayed in an animation. Without using a WASM/JS based decoders or message passing from a DOM accessible area, workers have no ability to decode images. As we look to provide audio and video codecs through WebCodecs we intend to provide interfaces for images as well.


Status in Chromium


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • Positive


Search tags

image, webcodecs, decoder,

Last updated on 2022-01-21