Page 1 of 1

Extend thumbnail cache to multiple sizes for the same folder

Posted: Sat Sep 12, 2009 7:55 pm
by Crysler
I often switch the thumbnail size because I need the thumbnail preview for multiple purposes (general overview, preselection, etc).

Problem here is, that XnView only caches/stores the thumbnails for one size/folder combination.
That way, if I switch the thumbnail size for an already cached folder, not only the new thumbnails have to be generated but also the old thumbnails are overwritten. Same thing for these folders when I swith the thumbnail size back. This is time-consuming, even if the contents of the folder didn't change (avoiding this is the main purpose of a cache).

So here goes the suggestion: would it be possible for XnView to cache thumbnails in multiple sizes for the same folder?

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Sun Sep 13, 2009 11:15 pm
by obelisk
how would it ever clean up with infinite thumbs?

use 2 configs instead.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Mon Sep 14, 2009 4:05 am
by marsh
obelisk wrote:how would it ever clean up with infinite thumbs?
By looking for a signature, which are often used as filenames.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Mon Sep 14, 2009 4:43 am
by Crysler
Nobody said "infinite thumbs". The amount of caching would depend on how much different thumbnail sizes you use. If you prefer a certain size, nothing would change for you. For all the others this would be a huge speedup.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Mon Sep 14, 2009 8:59 am
by oops66
Crysler wrote:Nobody said "infinite thumbs". The amount of caching would depend on how much different thumbnail sizes you use. If you prefer a certain size, nothing would change for you. For all the others this would be a huge speedup.
+1 an extra option to have into the xnview.db cache 2 (or maybe 3) different thumbnails sizes is a good idea.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Mon Sep 14, 2009 8:15 pm
by XnTriq
Similar concepts for improved zooming & panning: Instant Low-res image like Picasa 3

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Mon Sep 14, 2009 8:17 pm
by Crysler
...but this thread isn't about zooming and panning?

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Mon Sep 14, 2009 8:30 pm
by XnTriq
Crysler wrote:...but this thread isn't about zooming and panning?
What I'm trying to say is that storing multi-res thumbnails in the cache could eventually be a solution for improving several features at once.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Thu Sep 17, 2009 3:25 pm
by JohnFredC
This has been discussed several times before in the forum.

IIRC, my suggestion was for the cache to save two, user definable thumb sizes, a large and a small. Intermediate sizes could be interpolated (from the largest size) when a user moves a slider control.

There is also an issue of what to do about the thumb "canvas" and labels when one selects alternative thumb sizes. There is a post or two in the forum about that, as well.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Thu Sep 17, 2009 8:00 pm
by XnTriq

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Thu Sep 17, 2009 8:44 pm
by Crysler
Thanks for listing the relevant threads, XnTriq!
As far as I can see, Pierre never commented one of the "different thumbnail sizes in cache"-requests.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Thu Sep 17, 2009 11:00 pm
by obelisk
there's also a current issue when cache thumb is larger than set thumb size, it shows the larger thumb which then overlaps.

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Tue Nov 03, 2009 7:38 am
by Crysler
Pierre, do you see a chance for implementing something like this in a future version?

Re: Extend thumbnail cache to multiple sizes for the same folder

Posted: Tue Nov 03, 2009 7:49 am
by xnview
Crysler wrote:Pierre, do you see a chance for implementing something like this in a future version?
I don't yet, i'll check for a future release...