Skip to content

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

@codebymikey

Description

@codebymikey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions