jbuchermn / newm

Wayland compositor
MIT License
960 stars 30 forks source link

Allow SVG backgrounds #86

Open ieeemma opened 2 years ago

ieeemma commented 2 years ago

When zoomed in, bitmap images can look quite pixelated. It would be really nice to support vector images like SVG (but imageio doesnt support them sadly).

jbuchermn commented 2 years ago

That‘s a good idea! I think however it's not that easy to implement as it's not enough to simply load an svg file into an OpenGL buffer - the svg itself would have to be rendered according to current scaling.

I'll think about it.

However, since v0.2 newm shouldn't actually zoom beyond image resolution, if the provided image is at least a bit bigger than the output. This means you get "less zooming" but sharp backgrounds. Can you post the output of newm-cmd debug in a state where background is pixelated?