Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render SVG files at output resolution #60

Open
mstoeckl opened this issue Mar 12, 2023 · 1 comment · May be fixed by #79
Open

Render SVG files at output resolution #60

mstoeckl opened this issue Mar 12, 2023 · 1 comment · May be fixed by #79

Comments

@mstoeckl
Copy link
Collaborator

mstoeckl commented Mar 12, 2023

At the moment, when an SVG file is loaded, it is rendered as an image at the document size; this rendered image is then up- or downscaled onto the buffer for the destination output. It would be better to render the SVG file directly onto the output's wl_buffer.

Example branch to show one way to implement this: https://github.com/mstoeckl/swaybg/tree/svg-direct

Note: At the moment, librsvg does not support image-rendering: pixelated, which could be useful as a way to display pixel art with nearest-neighbor upscaling. However, with tools like https://github.com/tinychameleon/blocky, it is still possible to emulate the nearest neighbor scaling method.

@RunningDroid
Copy link

@mstoeckl librsvg appears to support image-rendering: pixelated now (as of 2.57.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants