Need Imlib2 alternative for Wayland #1845
Labels
display: wayland
Issue related to Wayland backend
lua
Issue or PR related to Lua code
question
Issue where reporter seeks information
rendering
Issue or PR related to rendering
Milestone
Imlib2 doesn't work for Wayland because it requires X11. As we provide bindings to Imlib2 for Lua, we need to find an alternative that's similar in functionality for Wayland.
Imlib2 supports following features:
Not sure if such a thing exists even. So this is an open ended question - let me know if you know of any.
Direct Wayland support isn't really a hard requirement though. It seems these days libraries tend to be much smaller in scope (which is a good thing ig), so we might end up having to combine multiple different libraries:
I can't find which formats Imlib2 supports, but Imlib supports PPM, PGM, TIFF, PNG, XPM, JPEG and EIM, so I guess maybe a few more. Most images these days come in PNG, JPEG, BMP and WebP, so I guess those are a good starting place. Loader for BMP format can probably be copied from SO bc it's simple.
Important detail to keep in mind is that image loading and manipulation are very susceptible to arbitrary (malicious) code execution, so any work on this has to be triple-checked.
The text was updated successfully, but these errors were encountered: