-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
.toBlob not woking with safari. #70
Comments
Sorry, I don't have any solution for Safary, as I cannot test on Safary. If On Sep 29, 2016 22:28, "sufianasif" notifications@github.com wrote: This is he function i am using function getImage(){ domtoimage.toPng(node) domtoimage.toBlob(node) Everything is working really great but the only problem is . toBlob — |
Hi sayen, I am using domtoimg.toPng() to capture a div with same domain images and text below it and then post to yammer. Everything works fine in chrome but not in safari. I am able to capture the text below the image but not the image in same domain in safari.. Could you please help me with this... |
This is he function i am using
function getImage(){
alert("sadkfjasldfkjasldkfj");
var node = document.getElementById('id-container');
domtoimage.toPng(node)
.then(function (dataUrl) {
var img = new Image();
img.src = dataUrl;
document.body.appendChild(img);
})
.catch(function (error) {
console.error('oops, something went wrong!', error);
});
domtoimage.toBlob(node)
.then(function (blob) {
window.saveAs(blob, 'id-front.png');
});
}
Everything is working really great but the only problem is . toBlob function is not working with safari but working with chrome. Any possible Solution?
Thanks
The text was updated successfully, but these errors were encountered: