| 1 |
JS image decode |
| 2 |
=============== |
| 3 |
|
| 4 |
Background |
| 5 |
---------- |
| 6 |
|
| 7 |
It is currently cumbersome to go from an encoded Blob or ArrayBuffer of image bytes to |
| 8 |
an ImageData (Uint8ClampedArray) for further image processing. |
| 9 |
See current/index.html for an example where a user can select an image from disk |
| 10 |
and have JS turn it into a grayscale version (no backend server). |
| 11 |
|
| 12 |
|
| 13 |
Proposal |
| 14 |
-------- |
| 15 |
We propose... See proposed/index.html for an API that makes this much cleaner. |
| 16 |
It uses the CanvasKit WASM library under the hood to provide functionality, but |
| 17 |
the intent is for Web Browsers to support this natively. |