Display folder's thumbnail when no images are available.

Features wanted...
Post Reply
klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Display folder's thumbnail when no images are available.

Post by klownboy »

Don, in beta v22.30.0006, you laid out the order of precedence when determining which file is used for the folder's thumbnail. If none of those file options are available (e.g., desktop.ini and folder.jpg, etc.), would it be possible to have a folder's thumbnail as a final choice (e.g., the folder has no desktop.ini or any images of any type, but does have a few folders which have thumbnails).

Folder-A
-----Folder-AA has no images only folders AAA & BBB
----------Folder-AAA
--------------Many pics
----------Folder-BBB
--------------Many pics

So currently if I'm in Folder-AA, I see the folder thumbnails for Folder-AAA and Folder-BBB. However, if I'm in the upper most Folder-A, I only see the standard windows folder pic for Folder-AA. I'm wondering if it would be possible to have as a final option for XYplorer to display the thumbnail for one of the folders beneath it? Of course, that would only apply if, 1) there are no images in the Folder-AA and 2) there is a folder thumbnail available. Thanks.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Display folder's thumbnail when no images are available.

Post by Horst »

For me this idea looks rather confusing and forces XY to read more than the currently displayed folder.
Why don't you just store a file into such top level empty folders.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Display folder's thumbnail when no images are available.

Post by klownboy »

I'm not sure if I'd call it confusing. The thumbnail(s) for the folders (in the above figure's case, Folder-AAA and Folder-BBB) already exist in the dat2 and dbits files. So, it's a matter of using them.

The folders have their names below the thumbnail, so you know what the folder is, and this use obviously only applies to thumbnailed folders containing images of some type. So, between the thumbnail pic and the folder's name you'd know what the folder is or contains without confusion.

And yes, I could place an image (or even a folder.jpg file) in the Folder-AA, but why should that be necessary if there's a thumbnail (for a folder(s)) already available to use
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Display folder's thumbnail when no images are available.

Post by admin »

Don't really like it. Like Horst said, it potentially multiplies the work.

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Display folder's thumbnail when no images are available.

Post by klownboy »

No problem Don. It's not a situation that would come up very often.

Side question: Why is it that CacheDir in XYplorer.ini has the final backslash (e.g., CacheDir=D:\Tools\XYplorer\Thumbnails\) or?:\XYthumbs\ if using local cache? When you select a folder in Configuration using the "..." the folder added has the backslash. Yet <xythumbs> does not. It's caught me a few times recently in scripts (i.e., adding the "\" to <xythumbs> is fine; adding it to cache CacheDir is not so fine. I suppose it doesn't matter because at this stage you couldn't change it without breaking too many scripts.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Display folder's thumbnail when no images are available.

Post by admin »

I think I did it because it spares some nanoseconds when comparing "D:\Tools\XYplorer\Thumbnails" with "D:\Tools\XYplorer\Thumb" the way I compare strings in this context.

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Display folder's thumbnail when no images are available.

Post by klownboy »

admin wrote: 18 Jan 2022 16:09 it spares some nanoseconds when comparing
It's always good to hear maintaining speed is a major factor with XYplorer.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

Post Reply