Extend thumbnail cache to multiple sizes for the same folder

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

Post Reply
User avatar
Crysler
Posts: 70
Joined: Fri Oct 17, 2003 9:33 pm

Extend thumbnail cache to multiple sizes for the same folder

Post 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?
obelisk
Posts: 465
Joined: Fri Jan 09, 2009 9:54 am

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

Post by obelisk »

how would it ever clean up with infinite thumbs?

use 2 configs instead.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

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

Post by marsh »

obelisk wrote:how would it ever clean up with infinite thumbs?
By looking for a signature, which are often used as filenames.
User avatar
Crysler
Posts: 70
Joined: Fri Oct 17, 2003 9:33 pm

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

Post 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.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

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

Post 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.
XnViewMP Linux X64 - Debian - X64
User avatar
XnTriq
Moderator & Librarian
Posts: 6339
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

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

Post by XnTriq »

Similar concepts for improved zooming & panning: Instant Low-res image like Picasa 3
User avatar
Crysler
Posts: 70
Joined: Fri Oct 17, 2003 9:33 pm

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

Post by Crysler »

...but this thread isn't about zooming and panning?
User avatar
XnTriq
Moderator & Librarian
Posts: 6339
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

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

Post 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.
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

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

Post 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.
John
User avatar
Crysler
Posts: 70
Joined: Fri Oct 17, 2003 9:33 pm

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

Post 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.
obelisk
Posts: 465
Joined: Fri Jan 09, 2009 9:54 am

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

Post 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.
User avatar
Crysler
Posts: 70
Joined: Fri Oct 17, 2003 9:33 pm

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

Post by Crysler »

Pierre, do you see a chance for implementing something like this in a future version?
User avatar
xnview
Author of XnView
Posts: 43601
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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...
Pierre.
Post Reply