Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


libav.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/

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: