The best application that i have seen for taking screen shots is a nodejs application that can easily called from php... It is called screen shot as service. This is the github for the application. https://github.com/fzaninotto/screenshot-as-a-service