Re: [img-conversion] canDecodeType \ canEncodeType could be supports() (#12)

Basically... I want to be able to do things like: 

```JS
async function () {
  let ops = {
      type: "image/jpg",
      operation: "encode",
  }
  if (!(ImageData.supports(ops)) {
     ops.type = "image/png";
  }
  let blob = await imageData.toBlob(ops);
  const img = document.body.appendChild(new Image());
  img.src = URL.createObjectURL(blob);
}
```



---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/img-conversion/issues/12#issuecomment-139652563

Received on Friday, 11 September 2015 20:17:17 UTC