Open deanoemcke opened 6 years ago
I'm able to get toDataURL()
with html2canvas 0.4.1 but not latest one.
+1
I've switched to "dom to image" library which solved my issue. Here is the result match-it
hi man, do you solve it ?
@jamesmarva as you've not addressed particular one in your problem, yes as I said I've switched to other library which solved my problem.
@amitguptagwl thanks, do you know use which library to save website-screenshot to he image?
@jamesmarva This is what I used to save image of particular div. I hope it should work for full page as well
@amitguptagwl thank u very much.
Let us hack it
const TempImage = window.Image
const Image = function() {
const img = new TempImage()
img.crossOrigin = 'anonymous'
return img
}
It works
Let us hack it
const TempImage = window.Image const Image = function() { const img = new TempImage() img.crossOrigin = 'anonymous' return img }
It works
crossOrigin
is anonymous by default.
Bug reports:
I am getting a tainted canvas error, even with the allowTaint flag set to false. Similar to #1409. The url I'm testing is: http://en.miui.com/forum.php I'm not sure how to set up a jsFiddle with this sorry, but I have tested it via a chrome extension using the executeScript functionality.
From extension:
Console output of tab:
Specifications:
Thanks for all your work on this amazing library.