[Thunar-dev] Thumbnails for HTML documents

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Sun Dec 31 14:20:46 CET 2006


Benedikt Meurer wrote:
>> This is what „kwebdesktop“ offers:
>>
>> $ kwebdesktop 640 480 thumbnail.png file:///home/you/your-document.html
>>
>> And there you go: you have your thumbnail. How difficult would it be to
>> integrate this?
> 
> Probably 4 hours to install KDE and 1 minute to add it to thunar-vfs. ;-)

Ok, with the latest Thunar, that'd be (quick&dirty):

---< html-thumbnailer.desktop >---
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=X-Thumbnailer
TryExec=kwebdesktop
MimeType=text/html;
Name=HTML Thumbnailer
X-Thumbnailer-Exec=kwebdesktop 640 480 %o %u
----------------------------------

This one let's kwebdesktop create a 640x480 thumbnail, which Thunar
scales down afterwards. Unfortunately, kwebdesktop cannot generate
useful images at the required size directly. Maybe someone can hack up a
tool that links to kdelibs and does this properly.

Benedikt



More information about the Thunar-dev mailing list