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
html2canvas not work when the html contains a canvas element #1311
Comments
I have the same problem. |
Could you share an example on jsfiddle? |
same problem. i have chartjs graphs on page, they are no longer rendering. used to render in previous version |
I have created a fiddle to show the problem This is not working on chrome :( , I can confirm on safari it working :) |
problem is in removing container form DOM before rendering |
I have the same problem. marker... |
Maybe html2canvas can not work with gridstack.js |
Had the same problem with using chart.js with vue(vue-chart.js) and it only happens in Chrome |
@Nemo0915 I build a jsfiddle with gridstack.js, but it's work fine.So maybe that is not gridstack.js's problem,but i am not very sure. |
same problem,Firefox is ok but Chorme can not work |
@bigfacewo thanks for your reply,it's the screenshot of your jsfiddle, the button has been stacked to the top too, and the result is same whether in FF or Chrome. |
@Nemo0915 I found the 0.5.0-beta4 version work normal,jsfiddle. the screenshot is: Chrome version:63.0.3239.108 |
you can add option: removeContainer: false to fixed this problem temporarily.... |
Thanks @IxAres, it solves my problem. |
Fixed in 38749bc |
i've tried adding removeContainer: false, but the problem still exists on mobile Chrome |
@niklasvh it doesn't work at all. I am using version 1.0.0-rc.5 of this application. |
hey,what solution? |
2020 the problem is still here. |
+1 I'm also seeing this behaviour. |
Problem still exists |
Problem still exists with Chart.js and Firefox 76.0 (64-bit) browser |
Hey there I am getting the same issue with Mapbox inside the element can you please help here. |
@Rajeshgtstpl I had a similar issue with mapbox. I solved it by setting |
I'm not using Chart.js, but had the same problem with canvases where i used drawImage. Solved the issue by putting image.crossOrigin = 'anonymous' on the image element before passing it to drawImage, like this:
Hope it can help someone :) |
@AchoArnold Question: have you noticed a performance impact? |
it saved my life thanks |
It does not work. |
Is there any fix for this?? Still facing this issue. |
We had to use a proxy server to avoid this problem. |
Found any fix? |
Where we add this into code |
The statistical chart is good in Chrome, but there is a problem with Safari and the statistical chart is not available. |
Bug reports:
I am using html2canvas in a react Project. I found that html2canvas not work when the html contains a canvas element. The canvas area will show empty.
Specifications:
this is the html picture
this is the convert to canvas picture
in the canvas area , I use 'echarts-for-react' to draw a Radar map。But when I clcik Generate pictures Button , the dowload picture is not complete
The text was updated successfully, but these errors were encountered: