dom-to-image
dom-to-image copied to clipboard
Doesn't work on ios device
I'm using dom-to-image in ionic 2 app and this is my typescript code. When I trying in chrome it is working but in ios device not working.
ERROR: oops, something went wrong! [object Event] (My console log)
public save() {
var node = document.getElementById('image')
domtoimage.toPng(node)
.then(function (dataUrl) {
imagedata = dataUrl;
console.log(imagedata);
})
.catch(function (error) {
console.error('oops, something went wrong!', error);
});
this.isCropped = true;
}
I have the same problem. SecurityError (DOM Exception 18): The operation is insecure.
Indeed, it does not work on iOS. In this comment I explained the workaround I use to make screen shots on iOS.
Thanks for your help. But html2canvas have blurry problem and it is not enough for me.
Ok, I am using it to make some screen shots of very small cards and html2canvas renders them rather well on iOS 10. I assume you have some more advanced use-cases. Sorry, I have no other workaround for you. 😞
Thank you for your interest 👍
Same problem for me. html2canvas can't correctly process svg charts made with d3.js.
Same problem...
Same problem...
Same problem...
谢谢你的帮助。但是html2canvas有模糊的问题,对我来说还不够。
现在有对应的解决方案吗