- From: Marcos Caceres <notifications@github.com>
- Date: Fri, 11 Sep 2015 13:16:48 -0700
- To: WICG/img-conversion <img-conversion@noreply.github.com>
Received on Friday, 11 September 2015 20:17:17 UTC
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