neocotic / convert-svg

Node.js packages for converting SVG into other formats using headless Chromium
MIT License
198 stars 45 forks source link

0.6.0 produces dimmer renders than 0.5.0 #92

Open NotoriousWebmaster opened 2 years ago

NotoriousWebmaster commented 2 years ago

I recently needed to add filter: brightness(2.0); to my SVG's CSS. But converting it with 0.5.0 showed no indication that the filter was being used. I tried some other filters, and they were similarly ignored. I use the convert() API call, with no options, simply pass in the SVG string.

So I upgraded to 0.6.0, and the filter was recognized and used. However, a couple of issues cropped up.

I haven't found any other issues, as I reverted back to 0.5.0. I'll have to find some other way to handle the required brightness.

Let me know if you'd like some samples. I'm happy to help any way I can.

Good luck!