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 Image Support #6

Open
2 tasks done
IanSmithers opened this issue Nov 18, 2024 · 1 comment
Open
2 tasks done

SVG Image Support #6

IanSmithers opened this issue Nov 18, 2024 · 1 comment

Comments

@IanSmithers
Copy link

  • You are using the latest version
  • You are testing using the non-minified version of html2canvas-pro and checked any potential issues reported in the console

Bug reports:

There appears to be an issue with rendering SVG elements. The size does not get respected from the CSS.
chrome_Bh8kdNmuu4

As you can see the marker is clipped.

Specifications:

  • html2canvas-pro version tested with: 1.22.22
  • Browser & version: Chrome 130.0.6723.117
  • Operating system: Win 11 Pro 10.0.26100
@IanSmithers
Copy link
Author

IanSmithers commented Nov 18, 2024

P.S. There looks to be some PRs from the main repo that attempt to address this:
niklasvh/html2canvas#3048

I made these changes locally and tested them and no joy, still the same issue. The strange thing is that the image html2canvas creates has the actual size of the SVG element but the actual svg data is cropped.

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

1 participant