Re: JPEG thumbnailing latency
- From: Frederic Crozat <fcrozat mandriva com>
- To: nautilus-list gnome org
- Subject: Re: JPEG thumbnailing latency
- Date: Mon, 02 Jun 2008 09:53:01 +0200
Le samedi 31 mai 2008 à 07:28 +0200, Vitezslav Kotrla a écrit :
> I may have finally solved one of thumbnailing mysteries I've met in
> nautilus 2.22:
>
> While working with ufraw I've noticed that exported JPEG files got only
> generic 'image' type icon, not proper thumbnail. When I accidentally
> renamed one such file, it was instantly re-thumbnailed, this time
> correctly.
>
> It looks like ufraw creates empty JPEG file when conversion begins and
> it takes some time while data are finally written. In the meantime
> nautilus fails to thumbnail an empty file, so generic image filetype
> icon is assigned.
>
> Also enfuse works this way - it creates empty JPEG file first and starts
> writing output data later (20 seconds during my simple test, but of
> course even later depending on the workload).
>
> I wonder what is the proper solution?
I'd say : if thumbnailing fails initially and if file is still open,
monitor file close for writing and then, regenerate thumbnail.
I know inotify supports this ( IN_CLOSE_WRITE ) but I don't know if this
kind of granularity is available in gvfs..
--
Frederic Crozat <fcrozat mandriva com>
Mandriva
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]