[olug] automating web page screenshots
rob.townley at gmail.com
Thu Mar 14 02:03:34 UTC 2013
prevents commit when errors found.
On Mar 13, 2013 4:24 PM, "Jeff Hinrichs - DM&T" <jeffh at dundeemt.com> wrote:
> That is cool. I know the phantomjs is used by many to run e2e tests on
> build bots and saw an AngularJS presentation the other day, where they were
> using it to prerender js template pages into varnish to help with SEO.
> On Wed, Mar 13, 2013 at 4:16 PM, Adam Haeder <adam at adamhaeder.com> wrote:
> > Automating the creation of webpage screenshots used to be a giant thorn
> > my side. I just stumbled across this project on github today that makes
> > pretty simple:
> > API.
> > It has fast and native support for various web standards: DOM handling,
> > selector, JSON, Canvas, and SVG.
> > Howto:
> > Step 1. Download the package from http://phantomjs.org/download.html.
> > Compiled for CentOS 5.8 so you might not even have to compile it
> > Step 2. Extract: tar xvjf phantomjs-1.8.2-linux-i686.tar.bz2
> > Step 3. Go to the examples directory: cd
> > phantomjs-1.8.2-linux-i686/examples
> > Step 4. Grab a screenshot of google.com: ../bin/phantomjs
> ./rasterize.js "
> > http://www.google.com" google.png
> > Couldn't be easier
> > --
> > Adam Haeder
> > adam at adamhaeder.com
> > Check out my latest book: LPI Linux Certification in a Nutshell from
> > O'Reilly: http://bit.ly/bvQQ0I
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > https://lists.olug.org/mailman/listinfo/olug
> Jeff Hinrichs
> OLUG mailing list
> OLUG at olug.org
More information about the OLUG