amulous
amulous

Reputation: 732

How do I take a screenshot of a web page?

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

Answers (2)

Robin C Samuel
Robin C Samuel

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

Karthick Kumar
Karthick Kumar

Reputation: 2361

you can use cutycapt for taking screenshot of webpages , please see this link for full documentation http://cutycapt.sourceforge.net/

Upvotes: 1

Related Questions