ImageMagick is working at client side as a WebAssembly!
See code at
github.com/kamataryo/sandbox-wasm-imagemagick
src.jpg