1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Simple way to show a thumbnail of a webpage?

Discussion in 'Programming' started by lorien1973, Oct 22, 2004.

  1. dnthcaseme

    dnthcaseme Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    why u are sucking ur mind to...............just simple way install fresh copy of window XP ,,,,,,,,,,,,hows tht
    Imran Hashmi
    SEMrush
     
    dnthcaseme, Oct 2, 2005 IP
    SEMrush
  2. Roze

    Roze Guest

    Messages:
    403
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Sorry to dig up a rather old thread...I hacked together my minute PHP knowledge and got this to dynamically show alexa's thumbnail...just make sure $url is defined. Now...whether or not they mind us doing this is another question?

    $url = "http://www.tubanews.com";
    
    preg_match("/^(http:\/\/)?([^\/]+)/i",
       "$url", $matches);
    $host = $matches[2];
    
    // get last two segments of host name
    preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
    $shorturl = $matches[0];
    explode ($shorturl);
    
    echo "<img src=\"http://thumbnails.alexa.com/images/bigjpeg/$shorturl[0]/$shorturl[1]/$matches[0]_.big.jpeg\">";
    PHP:
     
    Roze, Oct 21, 2005 IP
    redhits likes this.
  3. ITExchange

    ITExchange Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #23
    I might repeat myself... but, there is no way in the world to do this from within a webscript without using a desktop component. So, you shouldn't bother trying.
     
    ITExchange, Jan 9, 2006 IP
  4. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #24
    You need to use PHP scripts for this purpose.
     
    Pathan, Jan 9, 2006 IP
  5. SiCK

    SiCK Peon

    Messages:
    452
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #25
    I thought about this before, the easiest way is to do it a server in VB, a simple socket listen for the url, brower.navigate to the page with the explorer object in a picture box, save the picture box, return the image. A couple of hours of coding. Nothing like having a dedicated server running a visual basic!
     
    SiCK, Jan 10, 2006 IP
  6. bzzubzzu

    bzzubzzu Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #26
    The one way I would accomplish creating a thumbnail is to write some sort of X-Windows based program in linux to automate the browser loading a site and then screen capture programmatically.

    On a windows system, I'd probably write a VB or MFC app to automate IE and then captue the screen into a device context, resize it and save to a file.
     
    bzzubzzu, Jan 12, 2006 IP
  7. arbos

    arbos Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #27
    I hate to bump an extremely old thread but...yes it is possible...so yes...you are wrong.
     
    arbos, May 11, 2006 IP
  8. ITExchange

    ITExchange Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #28
    Can you give us details?
     
    ITExchange, May 11, 2006 IP
  9. zdestiny

    zdestiny Peon

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
  10. sarahk

    sarahk iTamer Staff

    Messages:
    25,548
    Likes Received:
    3,551
    Best Answers:
    103
    Trophy Points:
    665
    #30
    It's a bit rough, but do you know who is behind it?
     

    Attached Files:

    sarahk, May 23, 2006 IP
  11. Sketchy

    Sketchy Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #31
    Very good ULR, does anyone know the code which makes this work? And is it only possible in ASP or can it be done in PHP?
     
    Sketchy, Jun 1, 2006 IP
  12. zdestiny

    zdestiny Peon

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #32
    zdestiny, Jun 2, 2006 IP
  13. ITExchange

    ITExchange Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #33
    They don't capture CSS based background images. :(
     
    ITExchange, Jun 2, 2006 IP
  14. Sketchy

    Sketchy Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #34

    Looks like a good site, thank you :)
     
    Sketchy, Jun 2, 2006 IP
  15. project5321

    project5321 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #35
    I have tried developing a webpage taking service myself and I really don't recommend messing with that idea unless you are developing a serious business which is dependent upon those webpage thumbnails. Otherwise it is just a whole lot easier to use a third party service available. Here's why I believe developing a standalone web page thumbnail generator is a bad idea.

    Developing the software itself is a pain. You cannot do that with some simple PHP GD library function - it is a whole lot more complex than that. First you need a dedicated server and that alone will cost you at least 150 USD a month. Then, it involves running an Xvfb package on the server that will accommodate the graphics output, since servers don't usually have video cards. Then you need to start a web browser on your server (say Mozilla) and develop an extension for that browser that will allow to save screenshots to files or use linux screen capture command.

    Processing images is always a pain in my opinion. You will virtually need an admin responsible for the maintenance of your software and your server because it is likely to crash often, unless it was developed by an IT genius. Finally, I don't believe you can make a lot of money out of it anyway, as there are free services available out there and there doesn't seem to be a lot of demand.

    To conclude the post, I dropped the idea halfway and resorted to a third party service developed by someone. The website I am using is fancythumbs.com. Don't treat this as an ad, just sharing my experience. Thank you.
     
    project5321, Oct 21, 2010 IP
  16. project5321

    project5321 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #36
    I have tried developing a webpage taking service myself and I really don't recommend messing with that idea unless you are developing a serious business which is dependent upon those webpage thumbnails. Otherwise it is just a whole lot easier to use a third party service available. Here's why I believe developing a standalone web page thumbnail generator is a bad idea.

    Developing the software itself is a pain. You cannot do that with some simple PHP GD library function - it is a whole lot more complex than that. First you need a dedicated server and that alone will cost you at least 150 USD a month. Then, it involves running an Xvfb package on the server that will accommodate the graphics output, since servers don't usually have video cards. Then you need to start a web browser on your server (say Mozilla) and develop an extension for that browser that will allow to save screenshots to files or use linux screen capture command.

    Processing images is always a pain in my opinion. You will virtually need an admin responsible for the maintenance of your software and your server because it is likely to crash often, unless it was developed by an IT genius. Finally, I don't believe you can make a lot of money out of it anyway, as there are free services available out there and there doesn't seem to be a lot of demand.

    To conclude the post, I dropped the idea halfway and resorted to a third party service developed by someone. The website I am using is fancythumbs.com. Don't treat this as an ad, just sharing my experience. Thank you.
     
    project5321, Oct 21, 2010 IP
  17. papillon

    papillon Greenhorn

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #37
    avoid image processing using client side scripting for sure!
     
    papillon, Oct 22, 2010 IP