Screenshot of website using php on linux using PhantomJS WebKit

How to

Main project page

http://phantomjs.org/download.html

 

 

Setup your environment

 

Setup phantomjs on Amazon EC2 instance

 

Setup your script

 

Capture webpage screenshot using PHP and Phantomjs

 

Additional reading on the PhantomJS

 

http://pielmeier.blogspot.ca/2011/02/headless-html-page-rendering-with.html

 

http://stackoverflow.com/questions/3342966/taking-website-screenshot-server-side-on-a-linux-rented-server-free

Leave a Reply