3 ms·
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
by xfalcox 2y ago
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.
- deleted 2y ago[deleted]
- lioeters 2y agolibav.js is in the direction you're thinking. > 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/ 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 https://github.com/josephrocca/wasm-image-decoder