- This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi, I need a PHP script that can make web page snapshot and save it on the server, user don’t need do anything, just click on link.
I looked into this a while back, you need to render the page somewhere and grab that image – EASY!!
Or so I thought. See http://stackoverflow.com/questions/757675/website-screenshots-using-php/
Some good resources within that, but I ‘gave up’ on the idea as it would require too many resources. I used the favicon of the site instead to ‘tie-in’ the link.
you want to take a snapshot of a page that the server serves?
I made an assumption that the screenshot is not of a site on the same server – like Googles search results now provide a screenshot. You know what they say about assumptions :-)
The best way to do it, is to use the client to do it for you with javascript and canavas.
Here is a good script: html2canvas
Ok, thanks
I found this place after A LOT of googling. You can use a really simple API to auto-generate screenshots and save them down.
As an example, i just lifted this from the API page…
<img src="http://serv.mpzimg.com/?uid=APIKEY&mw=200&mh=350&theURL=http://news.bbc.co.uk">
Hope that helps.
There are many free services out there that provide the ability to take website screenshots.
One of the best I have found is GrabzIt.
They have a free PHP API, to take a screenshot you just need to do something like:
include("GrabzItClient.class.php");
$grabzIt = new GrabzItClient("APPLICATION KEY", "APPLICATION SECRET");
$grabzIt->SetImageOptions("http://www.google.com");
$grabzIt->SaveTo("test.jpg");
http://thumboo.com also offers free thumbnails, and even pdf.. check them out!