[kde-linux] HTML previews
albert.bradley at contractor.thomson.com
albert.bradley at contractor.thomson.com
Sat Oct 14 01:08:02 UTC 2006
Thanks for getting back again....
I think this answer might work, but I'm having trouble getting it to capture from the window ID I'm getting for the Firefox window. Note that capturing the 'previewtest' window DOES work. (see below output)
???
Also, I notice that although firefox advertises -width and -height parameters for the command line, it seems to ignore them (on all platforms I have tried)
Thanks again.
-= miles =-
----
[khtml-~/] export DISPLAY=:0
[khtml-~/] xlsclients -l
Window 0x2400005:
Machine: khtml
Name: previewtest
Command: previewtest
Instance/Class: previewtest/Previewtest
Window 0x160000c:
Machine: khtml
Name: kicker
Command: kicker
Instance/Class: kicker/Kicker
Window 0x2c00001:
Machine: khtml
Name: SoftwareUpdater
Icon Name: SoftwareUpdater
Command: SoftwareUpdater
Instance/Class: SoftwareUpdater/SoftwareUpdater
Window 0xe00001:
Machine: khtml
Name: Firefox
Icon Name: firefox-bin
Command: firefox-bin
Instance/Class: firefox-bin/Firefox-bin
[khtml-~/] import -window 0x2400005 test.jpg
[khtml-~/] import -window 0xe00001 test2.jpg
import: unable to read X window image `0xe00001'.
import: missing an image filename `test2.jpg'.
[khtml-~/]
-------------------
-----Original Message-----
From: Kevin Krammer [mailto:kevin.krammer at gmx.at]
Sent: Fri 10/13/2006 3:22 PM
To: kde-linux at kde.org
Subject: Re: [kde-linux] HTML previews
On Saturday 14 October 2006 00:11, albert.bradley at contractor.thomson.com
wrote:
> Hi again,
>
> I was able to get the previewtest application to run, but I find it's
> limited in the same way that Konqueror is, e.g. not being able to display
> certain flash (which FireFox is able to display properly), and so on.
> Plus, the preview app seems generally not to render as well as Konqueror;
> it puts funny grey rectangles where the full-size konqueror window puts the
> correct graphics.
The preview is only suitable for previews :)
For better images you'll always need the output of a full rendering engine
and, if I understand correctly, if you also want plugin output, you will need
a screen capture
> One method would be:
> 1. bring up FireFox with the link, in a sufficiently large window size
> using -width -height 2. grab pixels
> 3. close Firefox
>
>
> #1 and 3 I could handle (say from java or perl);
> 2 (grabbing the pixels) is more problematic.
One of the ImageMagick commandline tools can do screenshots (full screen or of
any window). It is called "import"
Cheers,
Kevin
--
Kevin Krammer, KDE developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4002 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20061013/d9e1ceb4/attachment.bin>
More information about the kde-linux
mailing list