Page 1 of 1

Problems with Some SVG Images

Posted: Sun Nov 06, 2022 3:21 am
by PEB
Hollywood's "SVG Image" plugin doesn't handle a lot of images correctly. None of the images used on https://www.msn.com/en-us/weather display correctly. They all lack the proper colors, and some also seem to be missing certain parts of the image.

Re: Problems with Some SVG Images

Posted: Wed Nov 16, 2022 5:31 pm
by airsoftsoftwair
Yes, that's not too surprising given that the SVG plugin is based on a librsvg that is more than 10 years old. Time to update to a newer version of librsvg, I guess.

Re: Problems with Some SVG Images

Posted: Thu Nov 17, 2022 7:40 am
by PEB
Thanks for looking into this!

Re: Problems with Some SVG Images

Posted: Sun Jul 21, 2024 11:08 am
by airsoftsoftwair
airsoftsoftwair wrote: Wed Nov 16, 2022 5:31 pm Yes, that's not too surprising given that the SVG plugin is based on a librsvg that is more than 10 years old. Time to update to a newer version of librsvg, I guess.
Actually, updating the SVG plugin to use a newer version of librsvg is easier said than done because that will introduce all new sorts of dependencies because it needs more recent versions of Cairo and Pango which then need a more recent version of HarfBuzz, which is currently not portable to AROS and has even more dependencies so that it would massively bloat the lightweight renderer which is often just about 1 MB in size massively to a 5 or 6 MB binary. That's why I think I've had a better idea: I've added SVG support to the Pangomonium plugin now. This already has almost all requirements of librsvg in it so I could easily update this to use the most recent version of librsvg. I've tried all those problematic SVGs from MSN weather that you wrote about and they render correctly now with the SVG renderer of Pangomonium 2.0.

So you now have two options:

1) If you need a lightweight SVG renderer that supports most basic SVG options, use the dedicated SVG plugin.
2) If you need a more fully-featured SVG renderer that also has support for advanced text rendering, use the Pangomonium plugin.

Hope this helps :)

Re: Problems with Some SVG Images

Posted: Sun Jul 21, 2024 10:20 pm
by PEB
Sounds good.
Thanks!