konqueror --dump-png google.png http://google.com

Simon Hausmann hausmann at kde.org
Tue Mar 16 20:45:25 CET 2004


On Tuesday 16 March 2004 19:06, Clark C. Evans wrote:
> Hello.  I'm looking for a command line option for dumping
> out a rendering of a webpage to a PNG and/or EPS file for
> use in documentation.  My current application has 50+
> web screens and when we change a stylesheet, it is very
> painful to take screen captures...
>
> Ideally the function would:
>  - let me specify PNG or EPS output (for Docbook)
>  - let me specify the height/width of the rendering window
>  - let me specify the URL where it should be fetched
>  - only show content area (no menus, etc)
>
> Is something like this possible, for example...
>
> $ konqueror --dump-png output.png --dump-eps output.eps \
>             --width=640 http://server/location
>
> Which would simply fetch the page, render it for a screen
> having 640 width, as it would be displayed with CSS styling,
> and then save it as a PNG and/or EPS format.
>
> Best,
>
> Clark
> P.S. If konqueror can't do this, any tool that will?

I suggest to subscribe to kfm-devel at kde.org. Stephan Kulow and others have 
been developing a tool to test regressions in khtml. This tool can also make 
screenshots of rendered websites, I believe. I'm pretty optimistic that this 
tool can easily be modified to do exactly what you're looking for and the 
people on kfm-devel might give hints.

Simon


More information about the konq-e mailing list