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

fix: Use fill-opacity and stroke-opacity for hex colors with alpha #456

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

DenverCoder1
Copy link
Owner

Description

Adds support for hex colors in the format #rgba / #rrggbbaa where aa is the opacity (00-FF) when converting to PNG.

Inkscape does not currently support the #rgba / #rrggbbaa syntax - see https://gitlab.com/inkscape/inbox/-/issues/8215

Other SVG renderers may also have issues with certain colors fixed.

Type of change

  • Bug fix (added a non-breaking change which fixes an issue)
  • New feature (added a non-breaking change which adds functionality)
  • Updated documentation (updated the readme, templates, or other repo files)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Tested locally with a valid username
  • Tested locally with an invalid username
  • Ran tests with composer test
  • Added or updated test cases to test new features

Checklist:

  • I have checked to make sure no other pull requests are open for this issue
  • The code is properly formatted and is consistent with the existing code style
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Screenshots

@DenverCoder1 DenverCoder1 temporarily deployed to github-readm-fix-transp-eydojd February 16, 2023 00:12 Inactive
@DenverCoder1 DenverCoder1 merged commit fd370d2 into main Feb 16, 2023
@DenverCoder1 DenverCoder1 deleted the fix-transparent-colors-in-png branch February 16, 2023 00:17
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

Successfully merging this pull request may close these issues.

1 participant