Problems with Some SVG Images

Discuss about plugins that don't have a dedicated forum
Post Reply
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

Problems with Some SVG Images

Post 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.
User avatar
airsoftsoftwair
Posts: 5626
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problems with Some SVG Images

Post 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.
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

Re: Problems with Some SVG Images

Post by PEB »

Thanks for looking into this!
User avatar
airsoftsoftwair
Posts: 5626
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problems with Some SVG Images

Post 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 :)
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

Re: Problems with Some SVG Images

Post by PEB »

Sounds good.
Thanks!
Post Reply