You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lighting effects are effectively UB (undefined behavior) and every SVG library does whatever it wants.
Unless the SVG spec clarifies the expected behavior - we're out of luck.
If someone is willing to figure out what Chrome does differently - feel free to send a PR.
PS: A reminder, that SVG has non-reproducible rendering by design.
Given the following SVG:
Rendering with
cargo run -- test.svg test.png --background white
yields the following result:As you can see, there is a pretty clear white circle around the center.
Now I render with
cargo run -- test.svg test.png --background white --zoom 4
and I get:If you look closely, there is still a very dim white circle around it, but it's much less visible than before. Is this intended?
The text was updated successfully, but these errors were encountered: