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