No, I am not talking about capturing screenshot of your desktop using Print Screen or other screen capture softwares. I wanted to implement requirement where I had to capture screenshots of the input website. Now this is a tricky job. If you do not have dedicated server machines and permissions on your shared hosting server, it becomes slightly difficult. I tried searching on internet for APIs in PHP to capture a website’s screenshot but what I got was not that impressive. One of the code that I got somewhere was to use COM object to instantiate Internet Explorer and then capture the screen using some Win APIs. This technique is not only platform dependent but also slow. I wanted to implement this in Linux server so this technique will not work.
<?php
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->Navigate("http://www.google.org");
/* Still working? */
while ($browser->Busy) {
com_message_pump(4000);
}
$im = imagegrabwindow($handle, 0);
$browser->Quit();
imagepng($im, "iesnap.png");
?>
Code language: PHP (php)
But what I was looking for was a simple solution that I can implement in my shared hosting machine and integrate it with my website. And what I ended up is using some free services to capture website screens. Following are few of the services that I tried.
hi, Im also looking for this script. Hope I can find one to capture website screenshot.
Hi Derawan,
I had made some software near to your requirement.
Let me know if you are interested. I have already made something similar.
Where you need to specified single or you can get url from database and it will automatically make a snapshot of the website.
Thanks
Hi, I am also looking for a script I use shrink the web at the moment on 3 sites and it frequently uses up the daily limit something like 130 a day but over 3 sites so looking for a script that can be used on a directory or member site when the members join they enter their url and an image is generated from this! Would your script be able to do something like that!
Regards
Mal
One site worth adding into website screenshot capture utility is sitethumbshot.com. It has many nice features which makes it ideal for many users.
So has anyone found a script they can use on their server to generate website thumbnails? I don’t want to use a service because of the limitations.
How Create Image particular div(in all Data) tag in php
Hello Jay i am looking for how to take screenshot of perticular control present on that page…
Did you done with it? if yes then please share the logic of that with me on [email protected].
Thanks in Advance..
You can also try http://www.snapito.com for full screen captures including an API.
Please share if you know how to take screenshot of perticular control i.e. (DIV) present on that page…
You should try grabz.it they have a great API, with a callback functionality so that you get the screenshot as soon as it is ready rather than polling the service for it as is done with thumbilizer.
Try it here http://grabz.it
Hey, i want to external url screenshot on linux system but i dont work anytime. If you an any idea, please help me.