Image Decode API: img.decode()

This change allows web developers to request to decode an img element. The call to a new HTML <img> element’s decode() function returns a promise, which, when fulfilled, ensures that the image can be appended to the DOM without causing a decoding delay on the next frame.

Demos

Documentation

Specification

Established standard

Status in Chromium

Blink>Image


Enabled by default (tracking bug) in:

  • Chrome for desktop release 64
  • Chrome for Android release 64

Consensus & Standardization

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

  • No public signals
  • No public signals
  • Public support
  • No signals

Owners

Last updated on 2018-07-13