Thanks very much. As requested, feedback on my experience with the v1.20 script.
I'm not able to get it to work as I expect it to. Strange things happen. It does not appear to FULLY create thumbs for subfolders. My laptop has a C drive where the programmes reside, and an E drive where the pictures folder lives.
Having had problems with 1.19 I'd first used the script to "Empty Entire Thumbnail Cache" so that I was starting with a clean sheet.
I chose a folder from 2014 which has subfolders for each month, and started with a Left Mouse button click to activate the 3rd menu option - "Build Thumbnail Cache... current folder & subs". It takes only a very few seconds, then says it has completed, but there are no thumbnails.
- Thumbnail cashe rebilding complete.jpg (16.38 KiB) Viewed 2541 times
If I use the 6th option including size data, it appears to work but doesn't. Every subfolder has tens of images, the biggest has 738! The script takes only 2 to 3 seconds per folder while displaying the message "Busy rebuilding thumbnails"
- Screenshot 2022-05-21 XYplorer - THumbnail Maintenance Script 1.20 busy rebuilding.jpg (9.1 KiB) Viewed 2541 times
The script completes and gives the popup saying there were no images.
- Screenshot 2022-05-21 XYplorer - THumbnail Maintenance Script 1.20 no images.jpg (88.26 KiB) Viewed 2541 times
But there very clearly are images
So I used the standard menu item in XYp to create all thumbnails for January, which it did. Then I ran your script again. It showed a thumbnail cache for January, but still none before or after for any other subfolder.
- Thumbnail Database Rebuild - after using XYp to create the thumbs in January.jpg (49.52 KiB) Viewed 2541 times
Annoyingly, whenever the script changes folders, it takes focus from what I am doing, so I found that what I was typing in here while waiting for it to finish was not being recorded in full - I got words that started or ended, or combined because the space was typed while the focus was on the script.
If I use CTRL+LMB on menu item 6 then the script cycles through the folders on screen, creating thumbnails, and completes as expected with a cache for each subfolder.
- Thumbnails CTRL+LMB completed.jpg (97.85 KiB) Viewed 2541 times
But I don't understand the cache sizes. All thumbs are at 300*200.
January was 79 images and had thumbs created by XYp - 11,707 KB of cache.
February has 74 jpgs with thumbs created by script - 2,492 KB of cache
June has 472 jpg images - cache size 2,738 KB.
The reason seems to be that the thumbs were NOT all created by the script. In XYplorer, as I scrolled down within the June subfolder, thumbs were not there, and XYp created them on the fly.
So I re-ran the script option 6 just on the June subfolder. The cache size is now 78,754 KB. Opening that subfolder, the thumbs are all there even if I jump to the bottom of the folder.
- Thumbnail rebuild - one folder.jpg (33.93 KiB) Viewed 2541 times
Experiment- Use script menu item to "Delete & Build Thumbnail cache..." for that subfolder only. It completed almost immediately.
- THumbnail - delete and rebuild cache - result.jpg (10.72 KiB) Viewed 2541 times
But I don't know what it has done. The cache appears now to be 3.17 MB (from the first menu option of "Refresh Thumbnail Cache...")
So I used the 6th menu item again to build. That shows a cache of 3,246 KB before and 78,754 KB afterwards. So it appears that the delete part of menu item 7 had nearly happened, and the build part had not.
If I ran item 7 in the foreground using CTRL+LMB, nothing actually happened - the screen flickered once, and it said it had completed.
Next experiment:
Item 1 in the menu, run on subfolder May.
- THumbnail - rebuild cache from DB.jpg (152.96 KiB) Viewed 2541 times
It took about 30 seconds, and the cache for that folder increased from 2.32 MB to 91.30 MB.
Next: Menu item 6 on just the March subfolder which had 463 jpg images. The cache went up from 2513 to 22250. So running that same script on the folder above hadn't created all the thumbs.
I went back to Script menu item 1, and selected all subfolders, to create at current sizes. That took almost 9 minutes. At one point I got an "Error 91" popup from XYplorer, but it disappeared before I could screenshot it, and I didn't see what it referred to.
Every other folder cache was now significantly bigger, and opening a folder showed the thumbs were successfully created by this action.
- THumbnail - rebuild cache from DB - select all subfolders - result.jpg (156.52 KiB) Viewed 2541 times
I hope that all of this helps you understand what is happening, and improve the script.
Windows 10 v21H2. Dell XPS17 L702, i7 2720QM, 16GB RAM, 1920*1080 on external display.