[olug] automating web page screenshots
Jeff Hinrichs - DM&T
jeffh at dundeemt.com
Wed Mar 13 21:24:27 UTC 2013
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 in
> my side. I just stumbled across this project on github today that makes it
> pretty simple:
> It has fast and native support for various web standards: DOM handling, CSS
> selector, JSON, Canvas, and SVG.
> 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 yourself.
> Step 2. Extract: tar xvjf phantomjs-1.8.2-linux-i686.tar.bz2
> Step 3. Go to the examples directory: cd
> 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
More information about the OLUG