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