niklasvh/html2canvas — Issue #65: Screenshot.png , how to grab the canvas object
Author: adv0r
Created: 2012-02-29 13:25:06+00:00
State: open

Hi everyone,
I'm trying to edit the bookmarklet in such a way that it makes the screenshot in jpg/png.

That is easy to make via :
```javascript
var canvas = document.getElementById("mycanvas");
var img = canvas.toDataURL("image/png");
```

The problem is : I don't know how to intervene to grab the _canvas_ object .

Can you suggest me how to realize the feature that I want? Which file should I modify, and how?

Thank you in advance