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

convertColors plugin: Provide the ability to strip out ICC color profiles for better SVG 1.1 compatibility #2060

Open
codebymikey opened this issue Aug 19, 2024 · 0 comments

Comments

@codebymikey
Copy link

Is your feature request related to a problem? Please describe.
Some SVGs may contain ICC color profiles which is currently unsupported in browsers since it's a SVG 1.2 feature, and results in the SVG showing up as black by default when it's present and rendered in a browser.

Describe the solution you'd like
The plugin should detect incompatible property values and use the fallback colour where possible.

Example regex that can be used to strip and use the fallback value. https://regex101.com/r/uhVFHA/1

Describe alternatives you've considered
N/A

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant