linebender / resvg

An SVG rendering library.
Apache License 2.0
2.84k stars 229 forks source link

Specific SVG has greyed out colours #783

Closed Stoppedpuma closed 5 months ago

Stoppedpuma commented 5 months ago

The colours in this SVG appear greyed out for some reason, colours are represented properly in software without resvg.

You can download this for testing here

Appearance in oculante (uses resvg):

image

Appearance in imv:

image

LaurenzV commented 5 months ago

That's what I get when rendering via the CLI: test

So it must be an issue with that viewer you are using.

Stoppedpuma commented 5 months ago

This is also reproducible at https://resvg-js.vercel.app/ so I'm not sure it's viewer specific?

LaurenzV commented 5 months ago

Okay, I see now, it seems to be an issue with resvg 0.33, which is what oculante uses. But it doesn't seem to be reproducible on main anymore.

Stoppedpuma commented 5 months ago

Got it, thanks! I'll reopen if this issue presists.

LaurenzV commented 5 months ago

Yep, just bisected it, this was fixed in https://github.com/RazrFalcon/resvg/commit/67ca118f47fba6b65550c40635e56207a159ca4d. Your SVG contains mask-type: alpha as a presentation attribute