An SC for building thumbnails

Features wanted...
Post Reply
klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

An SC for building thumbnails

Post by klownboy »

Don, I know you have supported many changes and new scripting commands regarding thumbnails, but I'm wondering if you could possibly suport another? In some ways I'm surprised it hasn't been asked before since there have been so many other scripting developments on thumbnail related items (i.e., rethumb, unthumb, savethumb, thumbsconf). What I was thinking is a new SC for actually generating thumbnails or if the cache for the folder already exist, obviously it would be refreshing or rebuilding like the CID #501.

It would be named something like, SC thumbbuild or similar. It would take a folder as the first parameter and a thumbnail size (e.g., 1,2,or 3) as a second parameter and if possible, would have a flag that would accomplish the build recursively for supplied image folder. I'm not sure if this is totally out of the realm of possibilities in XYplorer, but could the thumbnail generation actually occur without being present in the specified folder or is that just not possible based on the way thumbs are generated (i.e., would XYplorer be capable of generating and writing the cache files to the thumbnail database without being in the current folder)? Or, if that's not possible could you have a flag which would accomplish the build in a second instance and exit that instance when done? As always, thanks for considering.

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

Re: An SC for building thumbnails

Post by admin »

Sounds good. I make a note for 18.90.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: An SC for building thumbnails

Post by klownboy »

Thanks Don. :tup:

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

Re: An SC for building thumbnails

Post by admin »

Spoke too soon (or read too fast): Nope, this is not possible. :| Thumbnailing is totally intertwined with the current location and state of the list.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: An SC for building thumbnails

Post by klownboy »

Oh well that's too bad. I got my hopes up. It doesn't appear that the thumbnails have to be written such that they are displayed and visually present while creating anyway. What I mean by that is, yes as you said they have to be written in the current folder (unfortunately), but they can be created in a 2nd instance that's in the tray (i.e., /win=tray) and out of site to the user. That's why I was thinking if I can do that there may be some magic you could apply to do that in a better way. Thanks Don.

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

Re: An SC for building thumbnails

Post by admin »

Well, sorry. Thumbnailing is a LOT of very complex and highly optimized code. Nothing is easy here. There is no way to isolate this.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: An SC for building thumbnails

Post by klownboy »

No problem and thank you Don, I'm in the process of updating my Thumbnail Maintenance script - trying to better optimize rebuilding or refreshing thumbnails in a background running second instance of XYplorer. There's no reason to have to look at the building or refreshing process if you don't have to especially if there's much to do.

Post Reply