Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: convert rgba() to color + opacity #1294

Closed
LuisAyuso opened this issue Oct 14, 2020 · 2 comments
Closed

feature request: convert rgba() to color + opacity #1294

LuisAyuso opened this issue Oct 14, 2020 · 2 comments

Comments

@LuisAyuso
Copy link

Hi there,

My current development uses svg exported from Adobe Xd in a Qt QML application, usually colors remain black.
I detected that if I replace fill="rgba(2,133,203,.8)" with fill="#0285cb" fill-opacity="0.8" colors are correct.
I presume this is part of the svg tiny specification that Qt supports.

This is the same problem with stroke.

Is it possible to add this feature as part of convertColors or maybe a dedicated plugin? that would be pretty cool.

@vanillajonathan
Copy link

@TrySound
Copy link
Member

TrySound commented Jan 2, 2022

Hi, browser support is not really a SVGO thing. It only optimizer. But yes, you can write own plugin to solve your problem. I'll be happy to list it in readme. See #1624 for plugin documentation.

@TrySound TrySound closed this as completed Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants