Re: [Tracker] Thumbnails?



On Sun, 20 Dec 2009 23:01:25 +0200
Debarshi Ray <debarshi ray gmail com> wrote:

On Maemo we use this software, which implements that specification:

http://git.xfce.org/apps/tumbler/

Yes I am looking into it and how Thunar is using it. However, I was
hoping that Tracker would keep the thumbnail URI for a given file, so
that when querying for a bunch of files I can retrieve the thumbnail
URIs as well. But looks like that is not possible. :-)

If the thumbnails are stored in compliance with the Thumbnail Managing
Standard, you can reliably compute the thumbnail URIs for a file with:

  string uri1 = home + "/.thumbnails/normal/" + md5(filename) + ".png"
  string uri2 = home + "/.thumbnails/large/" + md5(filename) + ".png"

where home is the current user's home directory and filename is
filename you need the thumbnails for. Normal is 128x128px, large is
256x256px. Which of these sizes are generated can be chosen by passing
the corresponding flavor to the Queue() method of the thumbnailing
service.

On Maemo thumbnails are stored a bit different (as JPEGs, with the
original URI and mtime metadata in a database instead of the files
themselves).

  - Jannis

Attachment: signature.asc
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]