php website taking screenshots of other websites...

Posted by thomase, 09-08-2008, 04:29 PM
I'd like to be able to take a screen shot, similar to the small thumbnail of the mix stream site like webhostingstuff.com has. I've seen a few other sites with something similar and I wouldn't mind being able to use it myself. http://www.webhostingstuff.com/review/MixStreamnet.html Anyone point me in the right direction? Cheers.

Posted by chilifish, 09-09-2008, 11:11 AM
This should get you going in the right direction. This task is easier on a windows machine at the moment. I am not able to post a link but you want the iecapt project at sourceforge.

Posted by luki, 09-09-2008, 11:38 AM
On the Linux platform you could do it along these lines (didn't try it): 1) Start a VNC server 2) Start Firefox on the VNC virtual display, providing the URL (or file) at the command line to display 3) Grab a snapshot of the VNC display 4) Crop the title/menu/status with say imagemagick 5) Kill Firefox and the VNC server (or reuse them) In theory it should work fine.

Posted by AntX, 09-09-2008, 12:18 PM
Google for "dynamic thumbnails from websites" and you'll find a LOTS of results on how to achieve this. Basically, some services offer this for free (I'm thinking girafa.com here, but there are others), or you can code something up yourself that will "take" a thumbnail of the websites you want. Good luck!

Posted by thomase, 09-09-2008, 02:54 PM
Windows' isn't a possibility but thanks Again not possible, and it should be automated. Sounds like the right thing...the one which does it for me (not coding it haha) Cheers

Posted by chilifish, 09-10-2008, 09:26 AM
I did some more digging and khtml2png seems to be an option for *nix operating systems?

Posted by luki, 09-10-2008, 11:56 AM
And who said it cannot be automated? Of course it can. It can all be run and controlled from one script...

Posted by thomase, 09-11-2008, 02:10 PM
I'm sure it could be done (just not by me) thanks for the help everyone still!

Was this answer helpful?

 Print this Article

Also Read

How to remove Nobody Check Security

Posted by amirasap, 02-13-2011, 05:16 PMHi i want to install new version of "Nobody Check...

I have a WHM/cPanel server shared server...

Posted by MightWeb-Greg, 04-21-2009, 06:45 PMI just had user KILL the server using 80% CPU and...

Simple Apache problem

Posted by Jinovich, 03-28-2008, 10:26 AMBasically, set up a server it has no Domain only IP, it...

How is freestylehosting.com?

Posted by Shazan, 08-30-2002, 06:13 AMHello everyone! I'd like to know if freestylehosting.com...

SNMP Monitoring

Posted by g3tech, 08-27-2003, 10:23 PMHello, Was just wondering what you guys out there use to...