Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Make page snapshot using PHP

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #33811
    scofield
    Member

    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.

    #84576
    clokey2k
    Participant

    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.

    #84579
    wolfcry911
    Participant

    you want to take a snapshot of a page that the server serves?

    #84581
    clokey2k
    Participant

    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 :-)

    #84668
    Barspin
    Participant

    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

    #84679
    scofield
    Member

    Ok, thanks

    #125330
    MikeWay
    Member

    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.

    #153402
    Maximus
    Participant

    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");
    
    #193967
    vizd
    Participant

    http://thumboo.com also offers free thumbnails, and even pdf.. check them out!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Back End’ is closed to new topics and replies.