I've been building a set of file tools that run entirely client-side β no upload, no server. The image side turned out to need no library and no WASM binary at all . The browser already ships JPEG, PNG and WebP codecs, and shipping your own would cost megabytes to do it worse.
Source: [Dev.to](https://dev.to/profostropher/canvasconverttoblob-doesnt-throw-on-a-format-it-cant-encode-it-hands-you-a-png-5ce3)