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.
An SC for building thumbnails
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
-
admin
- Site Admin
- Posts: 66366
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
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
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
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.
FAQ | XY News RSS | XY X
-
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
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
Well, sorry. Thumbnailing is a LOT of very complex and highly optimized code. Nothing is easy here. There is no way to isolate this.
FAQ | XY News RSS | XY X
-
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
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.
XYplorer Beta Club