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

Replace all rgba(...) color strings with rgb(...) in SVG exports to fix usage in illustrator/inkscape #4381

Merged
merged 3 commits into from May 10, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented May 9, 2024

From office hours today, a user noted that the scale bar from wiggle plots does not show up in tools like adobe illustrator

This has been seen before due to illustrator and inkscape not supporting rgba color strings

This PR runs a very coarse-level string-regex-strip that replaces rgba(r,g,b,a) with rgb(r,g,b)

The ideal might be to also add the separate opacity prop when this is encountered but this PR at least makes it so that the contents will show up instead of being totally un-renderable

@cmdcolin cmdcolin changed the title Replace all rgba(...) color strings with rgb(...) in SVG exports Replace all rgba(...) color strings with rgb(...) in SVG exports to fix usage in illustrator/inkscape May 10, 2024
@cmdcolin cmdcolin merged commit c5421c0 into main May 10, 2024
9 of 10 checks passed
@cmdcolin cmdcolin deleted the strip_all_rgba_svg branch May 10, 2024 14:39
@cmdcolin cmdcolin added the bug Something isn't working label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant