gtk-encode-symbolic-svg tool doesn't always render correctly icons
Steps to reproduce
- download some SVGs below
- use
gtk-encode-symbolic-svg ./my_foo_symbolic.svg 64x64
(the size doesn't matter, it's misrendered in all sizes) - Compare my_foo_symbolic.svg and the output png file
Some comparisons and SVGs (first one being SVG, the rest being different sizes of the generated PNGs):
Current behavior
See examples above.
Expected outcome
The symbolic icons look the same as their SVG counterpart.
Version information
- OS is irrelevant because the tool comes from the org.gnome.Sdk//master flatpak runtime
-
I have no idea which version of GTK (3 or 4) gtk-encode-symbolic-svg uses, as it has the same name for both versions and there's no --version or whatnot (though both gtk3 and gtk4 are present in the Sdk)oops nvm, there's a gtk4-encode-symbolic-svg. So it's with GTK 3.24.24.
Notes
Most icons do render correctly, but some others don't. I also noticed that rsvg-convert renders them correctly, and I think gdkpixbuf's SVG backend is using rsvg, so the problem might not be in librsvg ?
Edited by Vanadiae