Re: [img-conversion] Convert to spec (#14)

>        </h2>
> +      <pre class="idl">
> +typedef (HTMLImageElement or Blob) ImageSource;
> +
> +partial interface ImageData {
> +  [NewObject] Promise&lt;Blob&gt; toBlob (optional DOMString type, optional EncoderOpts options);
> +  [NewObject] static Promise&lt;ImageData&gt; create (ImageSource source);
> +  static CanPlayTypeResult canDecodeType (DOMString mimeType);
> +  static CanPlayTypeResult canEncodeType (DOMString mimeType);
> +};
> +
> +dictionary EncoderOpts {
> +  Operation operation;
> +  DOMString type = "image/png";

Is "image/png" the default?

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/img-conversion/pull/14/files#r40105019

Received on Tuesday, 22 September 2015 15:59:59 UTC