Large radial gradient is rendered with white bars and other glitches
When a large gradient is present, there are white bars or other odd rendering problems in the gradient.
It appears to be specific to cairo (based on comparison between other resvg backends, see https://github.com/RazrFalcon/resvg/issues/248#issuecomment-592802103)
What should have happened?
Gradient should appear without bars
Test cases
lib | svg (will be browser render) | ink | resvg (w/ cairo) | rsvg |
---|---|---|---|---|
pic |
Copyright
source https://commons.wikimedia.org/wiki/File:LibrsvgBug_T193942.svg
author Tomasz Steifer and JoKalliauer
license https://creativecommons.org/licenses/by-sa/3.0/deed.de
inbox#1934 (closed)
More examples taken fromSvg fragment:
<radialGradient
gradientTransform="matrix(0.00919923,0,0,0.01040598,90.081876,21.138552)"
id="s"
cx="14958"
cy="18636"
r="25246"
gradientUnits="userSpaceOnUse">
When the gradient is modified like so, the issue disappears shunken gradient (KK1_3)
<radialGradient
gradientTransform="matrix(000.919923,0,0,001.040598,90.081876,21.138552)"
id="s"
cx="149.58"
cy="186.36"
r="252.46"
gradientUnits="userSpaceOnUse">
Gradient taken from larger file,
lib | svg | inkscape |
---|---|---|
image |
Copyright
source https://commons.wikimedia.org/wiki/File:KK1.svg
author Tomasz Steifer
license https://creativecommons.org/licenses/by-sa/3.0/deed.de
Inkscape Version and Operating System:
- Inkscape Version: 1.1dev
- Operating System: Ubuntu 18.04
Edited by Nathan Lee