Re:Html2canvas - Webpages Screenshots with JavaScript
by owyn on Wednesday July 27, 2011 @01:42PM
(#2813193)
PhantomJS is great, although there are some bugs in the WebKit embedded inside QT because it's a bit old, it has the advantage of supporting flash plugins and it can do screen caps. I'm using it for a project now.
[ Parent
| on HN ]
Re:Html2canvas - Webpages Screenshots with JavaScript
by paulirish on Wednesday July 27, 2011 @06:44PM
(#2814584)
can you share your code for doing the screencaps? there are a few posts about it online but would love more detail on the setup.
Re:Html2canvas - Webpages Screenshots with JavaScript
by owyn on Wednesday July 27, 2011 @10:59PM
(#2815179)
It's a one liner. Once a page is loaded into the browser:
page.render(path_to_output);
I think it can save in PDF, GIF and PNG formats (it checks the extension on the filename to determine format)