Problems with Some SVG Images
Problems with Some SVG Images
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.
- airsoftsoftwair
- Posts: 5626
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Problems with Some SVG Images
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
Thanks for looking into this!
- airsoftsoftwair
- Posts: 5626
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Problems with Some SVG Images
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.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.
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
Sounds good.
Thanks!
Thanks!