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

svg elements do not render #2255

Closed
saucylegs opened this issue Jun 9, 2020 · 2 comments
Closed

svg elements do not render #2255

saucylegs opened this issue Jun 9, 2020 · 2 comments

Comments

@saucylegs
Copy link

Bug reports:

<svg> elements do not seem to render at all. Not on my website, not on the html2canvas website either.

Specifications:

  • html2canvas version tested with:
  • Browser: Chrome, Firefox
  • Operating system: Windows 10
@comparlimage
Copy link

Hello !
it could be work if you substitute the svg width % for px
var widthv = ($(svg).width()); // return value in px
var heightv = ($(svg).height()); // return value in px
$(svg).attr('width', widthv).attr('height', heightv);

But I don't find any solution for svg charged as img. not inline.
If you have any solution ? or found alternative ???
Chris

@saucylegs
Copy link
Author

#2583 fixes this issue

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