Need a script to generate thumbnail from a link - Quick

Discussion in 'PHP' started by OnlineHelp321, Apr 14, 2008.

  1. #1
    Hello

    I am in need of an php function / php code ,where in we can specify the link of the URL and it will just output the screenshot.

    I am looking for a quick solution. To suggest you how it can be done, If you have the source of phpLD then it has this feature. I just need the part mentioned above and nothing else. Please quote me a price if you want some compensation.

    Thanks
     
    OnlineHelp321, Apr 14, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    It's almost impossible to have PHP render a HTML page, and create a screenshot of it. Perhaps, if you have a Linux or Windows box (root), it's possible, but without it, I doubt you can do it at all.

    iWebTool (http://thumbnails.iwebtool.com/) offer a free service, where it converts the links in your pages to mouseover screenshots (and it's free!).

    Jay
     
    jayshah, Apr 15, 2008 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    
    include('getthumb.class');
    store_image($link,'newimage.jpg');
    
    PHP:
    Imagine it was that easy, but it isn't. Here is how sites do it:

    * Create a list of sites, usually in database/file.
    * Have a program that runs on a specific time frame (every 5 minutes) that will go through the list and get the images from the browser.

    Windows is best for such fetching, but it can also be done on Linux.

    You can also have on the fly creation, but you need a super fast computer, depending on the requested URLs.

    Peace,
     
    Barti1987, Apr 15, 2008 IP
  4. nation-x

    nation-x Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    nation-x, Apr 15, 2008 IP