-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Failed to load image at data:image/svg+xml, incorrect padding #515
Comments
That's really strange. |
PFA |
You have an extra |
Interesting, but I didn't add the My template goes like, <embed type="image/svg+xml" src={{ year_chart|safe }}/> Do you spot any error? |
Yes! You have to add quotes after <embed type="image/svg+xml" src="{{ year_chart|safe }}" /> |
Oops, thanks for pointing out my silly mistake. |
I have an issue to render base64 svg to pdf that ends with something like:
"z48L2c+PC9zdmc+/"
(not ending in "=")
(The error message goes like: Incorrect padding)
I notice when I install/uninstall
lxml
, sometimes the problem goes away, but it's nondeterministic for different cases.I am using pygal with weasyprint in Django and my code is like:
The print will give different result based on whether
lxml
is installed or not.I also saw #75, not sure if this is related.
The text was updated successfully, but these errors were encountered: