[kde-linux] HTML previews

Kevin Krammer kevin.krammer at gmx.at
Wed Oct 11 20:13:42 UTC 2006


On Tuesday 10 October 2006 19:44, albert.bradley at contractor.thomson.com wrote:
> Hi all,
>
> I'm trying to generate small previews of web pages.  e.g. right now, I'm
> trying to use khtml2png to grab an 800x800 image and then using convert to
> shrink them to 200x200.
>
> However, khtml2png has been problematic, and the fact that it pops up a
> window to do the bitblt from seems cumbersome, given that the KDE file
> manager is capable of generating HTML previews seemingly without effort.
>
> (in particular, khtml2png may be having problems with XDMCP, which is how
> I'm required to access the particular server...)

Hmm, maybe the khtml2png author can just keep the window hidden, I don't see 
any technical reason to actually show it.

> Is there some way to use the preview engine that KDE does as a stand-alone?
>  i.e. some command line I could type to tell it to just generate a certain
> sized preview from a URL?

Good question.
I guess it should be possible to create a program that creates preview jobs or 
directly loads the preview plugin, however I am afraid no such program exists 
yet.

Hmm, after looking through some KDE sources I found a quite primitive test 
program for KDE's preview system:
http://tinyurl.com/ebrml

hth,
Kevin

-- 
Kevin Krammer, KDE developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20061011/0d41372d/attachment.sig>


More information about the kde-linux mailing list