Downloaded svg logo breaking the result #286
-
Beta Was this translation helpful? Give feedback.
Answered by
codemasher
Oct 25, 2024
Replies: 2 comments 2 replies
-
Thank you very much |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, the error occurs when the SVG logo contains an XML header. The above image for example has this header:
When you remove it, the QR Code renders without issue.
However you will not yet see the logo, because the
<svg>
element has fixedwidth
andheight
attributes that cause it to be positioned outside of the visible area. When you remove these too, the logo appears as expected.You can see a bit of the logo here in the lower right corner:
With the u…