Re: Create thumbnail from webpage



I appologize for being a bit vague here, but I am trying to clarify this with a client for myself. the way it was stated too me:

"..we should also be able to pick up the front page of the web site and create a thumb-nail image of it .."

now I am assuming they mean the entire page content and create a thumbnail of it. I've search CPAN for the last couple of hours on this, but no luck. maybe it can be done on the fly. I was hoping to get a lead on this to see if it's even possible too do. :)

unless a browser on the server has a "take a screen shot of url" feature API you can (and most likely will) have to:


 a) open a browser on your server with a system call
 b) use your OS to take a snapshot of that "screen" to a file
 c) have your way with the file

The *only* way i've been able to do this was (all code is at my office but there are scripts that do it on the net)

open3() a pipe to an XWindows server window
open3() a pipe to a GUI browser in the window created in that step
open3() the XWindows screen shot
close all 3
work with file if needed

The parameter you will pass will need fiddled with so that you grab only the part of the browser that is displaying the web page.

Google it and you'll find a few scripts that use various browsers for XFree86.

HTH :)
.



Relevant Pages

  • Re: Create thumbnail from webpage
    ... "..we should also be able to pick up the front page of the web site ... unless a browser on the server has a "take a screen shot of url" feature ... open3() a pipe to a GUI browser in the window created in that step ...
    (perl.beginners)
  • Web site compatibility was Re: OT: windoze woes and full rant mode is on
    ... In the United States it is a requirement that all web-sites conform to ... to access the Microfocus web site. ... I use Firefox as my primary browser because ... The fact is that, as a web developer, of course I want as many people as ...
    (comp.lang.cobol)
  • Re: New problem with Firefox
    ... Our website works perfectly on IE7. ... peculiarity in IE7 -- when viewing a web site (this one we're on right ... with your monitor set at 1280 X 768 and your browser window at full ... And what if I have it set at 800 pixels wide? ...
    (microsoft.public.publisher.webdesign)
  • Re: OT: windoze woes and full rant mode is on
    ... web site in their lives, try and make it for those of us who do. ... The fact is that, as a web developer, of course I want as many people as ... browser testing for many years. ... If I embed an ActiveX control on my web server, ...
    (comp.lang.cobol)
  • Re: Problems with PrintReady javascript and published Frontpage 2003 web site
    ... 2003 web site ... > In your script delete the 5 lines you have added between ... > Then Test in Browser before you publsih ... > | link it opens a new windows and my browser freezes. ...
    (microsoft.public.frontpage.client)