If you do delve into improving the performance, I suggest using Rust and no_std
crates for dealing with images, such as docs.rs/zune-jpeg/latest/zune_jpeg/.
It would probably take some time to get it working, but it would probably increase performance and support any format you can find a crate for. But it does not seem like it’s worth it.
I’ll add this to my list of “things I might to when I don’t have a side project to waste my time on” :D
lent9004@lemmy.world 4 days ago
Thanks for your kind words, I tried putting some effort into making the interface a bit more fun and interactive, so thanks for noticing!
In regards to Rust, I’ve been interested in learning more about it, but I’ve not had time yet, so it’s been in a “soon ™” limbo. As I’m comfortable with JavaScript/JS frameworks, sticking with JS was a quick way to get started without much friction.
verstra@programming.dev 4 days ago
Rust will take time - it has a few concept that I haven’t seen in javascript/python/java/C++ family of languages. But it gives “zero-cost abstractions” i.e. a way to write high-level code without any performance penalty. And it has great tooling and WASM support, which is what you’d be after.
But as I said, it is all not worth it now, just for this application.
lent9004@lemmy.world 4 days ago
That’s still very interesting to hear, maybe I’ll look into it for my next (simpler) project just to try it out.