Using HTML5/Canvas/JavaScript to take in-browser screenshots -


google's "report bug" or "feedback tool" lets select area of browser window create screenshot submitted feedback bug.

google feedback tool screenshot screenshot jason small, posted in duplicate question.

how doing this? google's javascript feedback api loaded here , their overview of feedback module demonstrate screenshot capability.

javascript can read dom , render accurate representation of using canvas. have been working on script converts html canvas image. decided today make implementation of sending feedbacks described.

the script allows create feedback forms include screenshot, created on clients browser, along form. screenshot based on dom , such may not 100% accurate real representation not make actual screenshot, builds screenshot based on information available on page.

it does not require rendering server, whole image created on clients browser. html2canvas script still in experimental state, not parse of css3 attributes want to, nor have support load cors images if proxy available.

still quite limited browser compatibility (not because more couldn't supported, haven't had time make more cross browser supported).

for more information, have @ examples here:

http://hertzen.com/experiments/jsfeedback/

edit html2canvas script available separately here , examples here.

edit 2 confirmation google uses similar method, (in fact based on documentation major difference async method of traversing/drawing) can found in presentation elliott sprehn google feedback team: http://www.elliottsprehn.com/preso/fluentconf/


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -