Hey, On Sun, 20 Dec 2009 13:24:28 +0100 Philip Van Hoof <spam pvanhoof be> wrote:
On Sun, 2009-12-20 at 14:13 +0200, Debarshi Ray wrote:I am trying to build a photo management application that will use Tracker instead of its own SQLite DB.Is there any way Tracker can help me get the thumbnails for a particular photo known to Tracker? I foundOn Maemo we use this software, which implements that specification: http://git.xfce.org/apps/tumbler/ This is the adapted version that we use on Maemo: http://gitorious.org/maemo-af/tumbler I added Jannis Pohlman, maintainer of Tumbler, in CC for you.http://pvanhoof.be/blog/index.php/2008/09/07/heres-a-meme-orgfreedesktopthumbnailer and noticed that tracker-thumbnailer.c mentions org.freedesktop.thumbnailer (and friends), but I do not think I have any program on my GNOME desktop which actually provides this service. Is Maemo's hildon-thumbnail what I should be looking for? I know that gnome-desktop provides a GnomeDesktopThumbnailFactory but it does not seem have any asynchronous API and I would like to avoid having to deal with threads just for fetching thumbnails as is being done by Eye of GNOME. Not sure how damaging it would be to use the synchronous calls to lookup, and if create and save thumbnails in the main thread, either.
it all depends on how many thumbnail requests your application generates and how responsive the application has to be. As a file manager, Thunar is a very extreme example. It needs to remain 100% responsive even when a user scrolls up and down like crazy in a directory with 5000 large images. Whether image viewers like Eye of GNOME and Ristretto (an Xfce image viewer that is under development and that features a thumbnail bar) have similar requirements depends on their UI. Applications that only need thumbnails occasionally and only for individual files can safely avoid threads for this and stick to asynchronous D-Bus calls. - Jannis
Attachment:
signature.asc
Description: PGP signature