- From: Ashley (Scirra) <notifications@github.com>
- Date: Tue, 22 Sep 2015 10:18:09 -0700
- To: WICG/img-conversion <img-conversion@noreply.github.com>
Received on Tuesday, 22 September 2015 17:18:40 UTC
> </h2> > + <pre class="idl"> > +typedef (HTMLImageElement or Blob) ImageSource; > + > +partial interface ImageData { > + [NewObject] Promise<Blob> toBlob (optional DOMString type, optional EncoderOpts options); > + [NewObject] static Promise<ImageData> create (ImageSource source); > + static CanPlayTypeResult canDecodeType (DOMString mimeType); > + static CanPlayTypeResult canEncodeType (DOMString mimeType); If there is only one function to test both encode/decode, browsers would be obliged to support both encoding and decoding for any new image formats, which seems unreasonably strict. For example a browser might want to be able to decode both JPEG, JPEG-2000 and JPEG-XR, but only encode JPEG and JPEG-2000. --- Reply to this email directly or view it on GitHub: https://github.com/WICG/img-conversion/pull/14/files#r40114553
Received on Tuesday, 22 September 2015 17:18:40 UTC