Reputation: 732
I'm using html2canvas to get screenshots of my web app. But I'm not able to use images from URLs due to CORS restrictions even after using proxy. Any alternatives available for html2canvas?
(I need to take the screenshot from within the html page - on the click of a button)
Upvotes: 1
Views: 316
Reputation: 1225
html2canvas should work, atleast it works fine for me
try
html2canvas($('#map'), {
useCORS: true,
allowTaint:true,
onrendered: function(canvas) {
document.body.appendChild( canvas );
}
});
Focus on that useCORS
and allowTaint:true
Upvotes: 0
Reputation: 2361
you can use cutycapt
for taking screenshot of webpages , please see this link for full documentation http://cutycapt.sourceforge.net/
Upvotes: 1