On Sat, 2006-08-12 at 11:21 -0600, Matthew Frederico wrote:
> Ok, I have looked high and low, downloaded script after script ...
> Does anyone know of some way to take a snapshot of a rendered web page
> and convert it to png?  Some command line utility that perhaps takes
> advantage of the gecko engine or something akin to that?
> 
> I've seen the script that requires you to keep a browser window open
> and it takes snapshots of what the browser renders, but that's
> obviously not going to work.  I need it to work on a server basis.
> 
> even if there is a commercial linux app to do it, I'd be happy.
> 
> I'm very much at a loss here.

Here's an example of a Ruby script that uses gtkmozembed to capture
screenshots.

http://ruby-gnome2.sourceforge.jp/hiki.cgi?RubyGecko#MozSnapshooter+%
28HTML+page+thumbnailer%29

However, there's a catch and a possible solution.

I've only spent a couple of minutes poking at the the GTK version of
Gecko and I'm starting to suspect it's going to require a display to
work.

Xvfb is a display that requires no hardware. It used to be used with
some stupid Java libraries that required a display to work. You might be
able to use it to solve your current problem too.

-- 
Stuart Jansen              e-mail/jabber: [EMAIL PROTECTED]
                           google talk:   [EMAIL PROTECTED]

"However beautiful the strategy, you should occasionally look at 
the results." -- Winston Churchill

Attachment: signature.asc
Description: This is a digitally signed message part

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to