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

Transformed elements in SVG document with opacity < 1 are not rendering #1976

Closed
audy opened this issue Oct 3, 2023 · 2 comments
Closed
Labels
bug Existing features not working as expected

Comments

@audy
Copy link

audy commented Oct 3, 2023

I am encountering an issue when trying to render an SVG document that contains elements with opacity < 1.0. Elements in w/ opacity < 1.0 do not render in Weasyprint==60.1.

I have attempted to create a minimal SVG document that recreates the issue here.

I am converting using the weasyprint CLI:

weasyprint example.xml example.pdf

This is a screenshot of the same XML document rendered using Chrome:

Screenshot 2023-10-02 at 9 23 33 PM

This is a screenshot of the same document rendered using weasyprint. The two points that are still visible have opacity=1.0:

Screenshot 2023-10-02 at 9 23 20 PM

Let me know if I can provide any more information.

@liZe liZe added the bug Existing features not working as expected label Oct 3, 2023
@liZe liZe closed this as completed in 4dfe607 Oct 3, 2023
@liZe
Copy link
Member

liZe commented Oct 3, 2023

Thanks for the bug report and for the example. It’s now fixed and tested!

@liZe liZe changed the title Elements in SVG document with opacity < 1 are not rendering Transformed elements in SVG document with opacity < 1 are not rendering Oct 3, 2023
@audy
Copy link
Author

audy commented Oct 3, 2023

@liZe amazing! works on my end. thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants