Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[ NEW PLUGIN ] GetScrenshot v1.0

Quote Reply
[ NEW PLUGIN ] GetScrenshot v1.0
GetScreenshot v1

This plugin uses a tool called "khtml2png" to grab a screenshot of the URL in question.

This is a UNIX based program, which uses an X-Server to grab screenshots of website, listed in your LinksSQL directory. Please note, X-server and khtml2png are REQUIRED for this plugin. If its not working on your server to start with, we can NOT be held responsible for installing it / setting it up correctly for you (if you need help with the plugin itself, then thats fine ... but the system services must be running correctly). Please check with your host, before purchasing this plugin. Thanks :)


Details: http://www.ultranerds.com/...bin/details/138.html

If you have any questions, please don't hesitate to ask.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] GetScrenshot v1.0 In reply to
Hi Andy does this also work with khtml2jpg ?
Significant Media
Quote Reply
Re: [Jag] [ NEW PLUGIN ] GetScrenshot v1.0 In reply to
In Reply To:
Hi Andy does this also work with khtml2jpg ?

Afraid not (at the moment). I do plan on adding this, once we can see how the current system works, and make any needed modification (no point doing everything twice =)).

I'll add it to my "TODO" list <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] GetScrenshot v1.0 In reply to
Hi Andy

In your details page your talk about needing an Xserver. I suppose your talking about XFree86's X server for example. There is also reference to a VNC client.

I was just wondering whether you had any references for these different types of requirements/prerequisites and also is there any chance of an indication as to how much space this set-up needs on a server ?

Thanks, John
Significant Media
Quote Reply
Re: [Jag] [ NEW PLUGIN ] GetScrenshot v1.0 In reply to
Yeah, most of the details can be found here;

http://www.babysimon.co.uk/khtml2png/README

Here are a few things to take into consideration;

Quote:
Cookies
*******

If the user running khtml2png hasn't been using KDE, or their cookie
policy is set to "Ask", they will be asked what to do about cookies,
causing khtml2png to hang. To avoid this, copy one of the supplied
kcookiejarrc files to ~/.kde/share/config/kcookiejarrc, or run konqueror
interactively.

X Server
********

khtml2png needs to connect to an X server (but won't create anything
on screen) - use Xvnc if using it on a server (there seem to be problems with
Xvfb). The X server needs to have enough colour depth and resolution to support
the canvas you intend to use (even though no window is opened - life is
strange). Example command line:

vncserver -depth 32 -geometry 1000x1000

Flash
*****

Unfortunately since the Macromedia flash plugin is not based on Qt, we need
to pop open a window in order to take a snapshot of the page. Use the
--flash-delay command line option to switch this mode on. The --flash-delay
option takes an argument of the number of seconds to wait *after* the page
has loaded before taking the snapshot - you may want to use this to allow
the movie to start playing. Or you can use --flash-delay 0 to snapshot
immediately.

Obviously flash will only work if you have the plugin installed and working
with Konqueror.

KDE 3.2
*******

Unfortunately (again), khtml2png will not render form elements when compiled
against KDE 3.2 unless you use the --flash-delay option. I'm looking into it.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!