Extend thumbnail cache to multiple sizes for the same folder

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

Post Reply
User avatar
Crysler
Posts: 60
Joined: Fri Oct 17, 2003 9:33 pm
Location: Baltic Sea, Germany

Extend thumbnail cache to multiple sizes for the same folder

Post by Crysler » Sat Sep 12, 2009 7:55 pm

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: 402
Joined: Fri Jan 09, 2009 9:54 am

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

Post by obelisk » Sun Sep 13, 2009 11:15 pm

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 » Mon Sep 14, 2009 4:05 am

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: 60
Joined: Fri Oct 17, 2003 9:33 pm
Location: Baltic Sea, Germany

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

Post by Crysler » Mon Sep 14, 2009 4:43 am

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: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

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

Post by oops66 » Mon Sep 14, 2009 8:59 am

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 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

User avatar
XnTriq
Moderator & Librarian
Posts: 5434
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 » Mon Sep 14, 2009 8:15 pm

Similar concepts for improved zooming & panning: Instant Low-res image like Picasa 3

User avatar
Crysler
Posts: 60
Joined: Fri Oct 17, 2003 9:33 pm
Location: Baltic Sea, Germany

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

Post by Crysler » Mon Sep 14, 2009 8:17 pm

...but this thread isn't about zooming and panning?

User avatar
XnTriq
Moderator & Librarian
Posts: 5434
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 » Mon Sep 14, 2009 8:30 pm

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 » Thu Sep 17, 2009 3:25 pm

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: 60
Joined: Fri Oct 17, 2003 9:33 pm
Location: Baltic Sea, Germany

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

Post by Crysler » Thu Sep 17, 2009 8:44 pm

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: 402
Joined: Fri Jan 09, 2009 9:54 am

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

Post by obelisk » Thu Sep 17, 2009 11:00 pm

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: 60
Joined: Fri Oct 17, 2003 9:33 pm
Location: Baltic Sea, Germany

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

Post by Crysler » Tue Nov 03, 2009 7:38 am

Pierre, do you see a chance for implementing something like this in a future version?

User avatar
xnview
Author of XnView
Posts: 31607
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 » Tue Nov 03, 2009 7:49 am

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