deleting thumbnails

Olivier lists at olivier.pk.wau.nl
Fri Oct 8 01:16:19 EEST 2004


On Thu, Oct 07, 2004 at 11:52:04PM +0200, Sven Neumann wrote:
> Hi,
> 
> I am not sure if I just overlooked something in the spec or this case
> is just not handled there.

I think it is not handled in the spec (yet).

> If an application updates a thumbnail
> (either because the existing one was outdated or because the user
> explicitely asked for it), then it will create the thumbnail at the
> user-configured thumbnail size. Now if the existing thumbnail is of
> the other size, should it delete that thumbnail or just create a new
> one in the other directory? Then two thumbnails for the same image
> would exist. What do you think?

for outdated or corrupt thumbnails: delete it
if the user requests it (for example, there is no thumbnail of
that size yet), the old thumbnail should stay I think. There is no problem
to have two thumbnails, as long as they are both valid. Think of the
following situation:

2 programs have different default thumbnail sizes. You first use program #1,
it creates a thumbnail. Then you use program #2, it wants a larger
thumbnail, if it would delete the other, program #1 needs to recreate it.

so I think the thumbnail should be deleted if it should be deleted according
to the cleanup rules, else it should not be deleted. 

regards,
	Olivier



More information about the xdg mailing list