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

QR code with gradient color is broken when converted to png #396

Closed
duongnx25 opened this issue Aug 4, 2023 · 2 comments
Closed

QR code with gradient color is broken when converted to png #396

duongnx25 opened this issue Aug 4, 2023 · 2 comments

Comments

@duongnx25
Copy link

duongnx25 commented Aug 4, 2023

Hi, when converting a QR code with gradient color, the content in the PNG file is broken and not readable anymore.

This is the SVG file:
caba2102d16818b18e96b429cf44f5fbf27c26ed

This is the PNG file after converting:
caba2102d16818b18e96b429cf44f5fbf27c26ed

I used the following code to convert the file
cairosvg.svg2png(url= 'original_file.svg', write_to='converted.png')
The same issue happens with svg2pdf.

@liZe liZe closed this as completed in c0a3875 Aug 4, 2023
@liZe
Copy link
Member

liZe commented Aug 4, 2023

Thanks for the bug report! It should be now fixed.

@duongnx25
Copy link
Author

Awesome job @liZe! Tested and it's working like a charm!

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

No branches or pull requests

2 participants