1303a1a15c
In https://skia-review.googlesource.com/c/skia/+/291182 emscripten was updated to 1.39.16. This introduced a breaking API change to the CanvasKit initialization callback, which becomes simply `then()` as opposed to `ready().then()`. In the course of this change, I missed a few `ready()` calls, which has broken the examples in public-facing documentation. E.g. https://skia.org/user/modules/canvaskit. This CL fixes that. Bug: NONE Change-Id: I857b4653747cffc3870bf92d479dc88c3fd7d64a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292097 Reviewed-by: Kevin Lubick <kjlubick@google.com> |
||
---|---|---|
.. | ||
current | ||
proposed | ||
README.md |
JS image decode
Background
It is currently cumbersome to go from an encoded Blob or ArrayBuffer of image bytes to an ImageData (Uint8ClampedArray) for further image processing. See current/index.html for an example where a user can select an image from disk and have JS turn it into a grayscale version (no backend server).
Proposal
We propose... See proposed/index.html for an API that makes this much cleaner. It uses the CanvasKit WASM library under the hood to provide functionality, but the intent is for Web Browsers to support this natively.