-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
widgets: add PNG status badge #11466
Conversation
It is SVG rendered into PNG using rsvg, which is already pulled as a dependency for Pango/Cairo stack. Fixes WeblateOrg#6221
@nijel after this change, I get tons of error reports because Weblate throws errors when trying to get the PNG status badge:
seems like that |
The render_document is new feature in 2.46, before there was render_cairo which is now deprecated. See #11466
Ah, this interface was added in librsvg 2.46 (see https://lazka.github.io/pgi-docs/Rsvg-2.0/classes/Handle.html#Rsvg.Handle.render_document), so you probably have an older version. I've adjusted the required version in e58b409. |
53994d9 should make it work with older versions as well. |
That worked - thanks for the quick help! |
Proposed changes
It is SVG rendered into PNG using rsvg, which is already pulled as a dependency for Pango/Cairo stack.
Fixes #6221
Checklist
Other information