I wish the author would do the same for image decoding. iOS inability to draw a canvas with 4096x4097 dimensions means you can't use an Off screen canvas to go from file to RGBA array.
> compilation of the libraries associated with handling audio and video in FFmpeg — libavformat, libavcodec, libavfilter, libavutil and libswresample — for WebAssembly
> compilation of the libraries associated with handling audio and video in FFmpeg — libavformat, libavcodec, libavfilter, libavutil and libswresample — for WebAssembly
https://github.com/Yahweasel/libav.js/
EDIT: Looking closer at the above I don't see image formats, only audio and video. Maybe this gets closer:
> Decodes images using Rust's image crate compiled to WebAssembly.
> It supports decoding PNG, JPEG, WEBP, GIF, BMP, ICO, TGA, and several others.
https://github.com/josephrocca/wasm-image-decoder