0

Possible Duplicate:
Website screenshots using PHP

I am trying to write a script that will take a list of urls and generate screencaps of them. I have searched around and am unable to find anything that will reliably accomplish the task. I am running PHP 5.3 on a Linux box. Any help is appreciated.

Community
  • 1
  • 1
Jeremy Z
  • 106
  • 2
  • 8
  • Does it need to be done server side ? There are a lot of browser plugins and other libraries that will let you script something like this. – sjobe May 26 '11 at 03:58
  • something like this maybe? http://blog.hazardousgaming.info/119/displaying-the-website-thumbnail-on-mouse-over – Claudiu May 26 '11 at 04:04
  • That thumbalizer does work, thanks Claudiu. I would still like to find something that I don't need a 3rd party service for. Thumbalizer charges money over a certain amount of requests per month. Thanks for the info. – Jeremy Z May 26 '11 at 21:52

1 Answers1

1

There's multiple ways to do that, but one of the easiest ways I have found is to use PhantomJS. They have an example of it on their website.

icktoofay
  • 126,289
  • 21
  • 250
  • 231
  • 1
    I need to have the script run as a cronjob and fetch images of the sites to save to disk. Not sure if I can get a js library to function server-side, but I will play around with this later tonight and let you know. Thanks. – Jeremy Z May 26 '11 at 21:54
  • @JZ: It's not a JavaScript library. It's a program that runs a JavaScript script, which can do things to a webpage, like load it and then render it. – icktoofay May 26 '11 at 23:27