Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.
Hi, I am having troubles with generating canvas on Chrome. I am trying to capture specific div
. It works okay on Firefox, however there is only blank white screen in size of generated canvas. It just behave like all child elements of that div have gone or are transparent or something like that.
When I switch to the latest 0.5 version of html2canvas it works okay on all browsers.
Are there any known issue? Maybe some unsupported css? I have tried it on multiple elements, with/without positioning, not just one div
, but with no luck.
Thanks for any advice.
Facing same kind of issue. Getting blank white canvas every time.
Try disable foreignObjectRendering
Same issue in latest Chrome 77, tried with foreignObjectRendering: false
but still same.
I use dom-to-image
it's better than any other libraries.
@Abdullah0991 Thank you, dom-to-image
really works.
@Abdullah0991 I just wasted 3 hours trying to get html2canvas
to work. Wish I'd seen your comment sooner. Thank you!
Most helpful comment
I use
dom-to-image
it's better than any other libraries.