[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Accessing Konqueror thumbnails. How?
From:       Malte Starostik <malte () kde ! org>
Date:       2002-03-28 15:05:48
[Download RAW message or body]

Am Tuesday 26 March 2002 20:25 schrieb Robert Vogl:
> Hi kfm-devel fans,
>
> In its "preview-mode" Konqueror apparently stores the thumbnails of
> the listed images somehow and somewhere in a /tmp-directory.
>
> My question is:
>
> How could a KIO-slave (SlaveBase) access to these thumbnails? It
> shall check if a thumbnail for a certain image given by its URL, does
> already exist or not.
>
> The question is relevant for KDE2.2.x.
If you only want to see if it already exists, just calculate an MD5 hash of 
the file's URL and see if the result exists (see 
kdebase/libkonq/konq_previewjob.cpp for the algorithm used - or 
kdelibs/kio/kio/previewjob.cpp in KDE 3). If you also want to create a 
thumbnail if it's not there yet, get KDE 3 and use KIO::filePreview() :-)

Please note that the cache location will change once Qt 3.1 will be available, 
it will then conform to http://triq.net/~pearl/thumb-spec.php
-- 
Malte Starostik
PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A  27CD 5431 7745 D2F3 C787]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic