Version 1.19
- I can't believe it's been that long since version 1.18 - over a year and a half. My main goal for this revision was to streamline thumbnail rebuilding as much as possible and minimize redundant thumbnail refreshing / rebuilding. A secondary goal was to perform the majority of maintenance operations in the background.
- There are instances where it may appear that the refresh/rebuild is occurring twice unnecessarily. Just as in normal use, the script may build some thumbs upon entering a folder but that could be due to the addition of images. Even when that occurs, the cache may not be truly rebuilt unless CID #501 (Refresh Thumbnails) is called. That is the purpose of the script to completely rebuild the cache eliminating extraneous thumbs and minimizing the cache size (i.e., there could be images that were renamed or deleted or moved which would still be in the database unless CID #501 is executed). I could invoke CID #507 to create any missing thumbnails but that command does not completely rebuild the cache.
- Folder View Settings (FVS) enabled and view modes for Tab styles may also affect thumbnail refreshing (e.g., a FVS for one particular thumbsize yet you select to build a thumbnail cache in another size.) In most situations I temporarily disable FVS to minimize unwanted refreshing of thumbnails, but some redundant refreshing may happen whether we like it or not. The script will provide a message stating so. When some redundancy does occur it's not really big deal since most of these operations are now performed in the background a separate instance of XYplorer running in the tray. Keep in mind though, if you have an FVS in one thumb view and you create thumbs in another size, the script may prevent the building of thumbs in the saved FVS thumb size, but unless you change save your FVS to the newly created thumb size XY will continue to display or re-build the thumbs in your old size thumbs. I'm not going to take it upon myself to change a Folder View Setting.
- My preference is to perform thumbnail maintenance operations in the background. Use a normal left click of the menu item to do this. If you prefer to do maintenance in the foreground (no reason to) hold the control key while clicking on the menu item. Background operations applies to menu items between the 2 divider lines.
- The two refresh menu options will properly recognize and rebuild both the regular and Zoom to Fill thumbnails as applicable. Whereas the normal rebuild options will rebuild in Zoom to Fill only if you have that setting on in Configuration | Thumbnails.
- For those that use the right click on a menu item function using AHK discussed here URL
viewtopic.php?f=7&t=18062 URL, I may write another version which will use right and left click to distinguish between foreground and background operations. If anyone is interested let me know.
- I hope you can get some use out of it and thanks for trying it.
Menu Option Descriptions:
"Refresh Thumbnail Cache...by folder using cache DB" - This menu item provides you with a listing of all the thumbnail cache files. It will also tell you if you have cache(s) that need to be deleted because the folder no longer exists or is empty and re-direct you to delete them before continuing. With this option you can check off a number of folders in which you want the cache rebuilt.Some of these menu items that rely on the thumbnail cache database may take a few seconds to appear on your display. The script has to obtain quite a lot of information from the cache files. So how quickly the menu displays depends on the amount of images cache file in the thumbnail folder.
"Refresh Existing Cache...current folder && subs" - This menu item refreshes the thumbnail caches for the current folder and all its subs. It will only re-build the cache for the folders that already have thumbnail cache and only in the thumbnail sizes that were already present. So it's not making any new ones for any of those folders that didn't have a cache, only rebuilding the cache for the folders that had one. I think this option is very handy to keep the database trim. Remember thumbs will stay in the DB when you move, delete and rename images so if you've done a lot of that, it may be much larger than it needs to be.
"Build Thumbnail Cache...current folder && subs" -This menu item will build a new database of thumbs for the current folder and all its subs. It makes no difference if there were some folders which had pre-existing cache or not. It will either write new thumbnail cache or write over ones (i.e., "dat2" and "dbit" files ) that already existed in the XY thumbnail folder.
"Build Thumbnail Cache...current folder only - Size Data" - This menu item will build a new database of thumbs for the current folder and all its subs. It makes no difference if there were some folders which had pre-existing cache or not. It will either write new thumbnail cache or write over ones (i.e., "dat2" and "dbit" files ) that already existed in the XY thumbnail folder. You select multiple thumbnail sizes to build or refresh and you will receive a report on the before and after size of the thumbnail database file for each thumbnail size.
"Build Thumbnail Cache...current folder && subs - Size Data" - Same as the option above, but this one will rebuild thumbs for all sub folders as well and again it will also allow you to select multiple thumb size per folder. It too will provide you a report of the before and after thumbnail database files size for each folder and in each thumbnail size.
"Delete && Rebuild Thumbnail Cache...current folder && subs" - This can be a handy option in that it will first delete all thumbnail caches for the current folder and its sub folders and then build the thumbnails in the size(s) of your choice in that directory structure. It accomplishes this with little interaction other than initially selecting the thumbnail size(s).
"Thumbnail Cache Clean-up [by folder using cache DB]" - I use this option quite a bit just to determine what I have for thumbnail caches (i.e., folders, thumb sizes, etc.). You can cancel out of the report listing if you just wanted to investigate and not actually delete caches. This option is based strictly on what's present (thumbnail cache) in your thumbnail database files. From here you can see the folders having a cache, the thumbnail sizes, dates, cache size, etc. and based on that information check off any cache(s) you want deleted. As mentioned this option will pre-check any folders which no longer exist or which are now empty of files such that they can be easily deleted.
"Thumbnail Cache Clean-up [current folder & subs]" - This will delete all existing the thumbnail cache from the current folder and all its subs and update the DB by comparing all the folders with those in the thumbnail cache. Remember each thumbnail size for a particular folder will have its own cache file (i.e., "dat2" and "dbits" files).
"Update Thumbnail DB for Image Folder Relocation" - This menu item updates the thumbnail cache(s) to recognize moving an image folder when not accomplihed by XYplorer using SC thumbscacherename. XYplorer will update the thumbnail caches when a folder move is accomplished within XYplorer. This may come in handy if you're setting up a new computer or used another file manager like Windows Explorer to accomplish a folder move (e.g., in setting up a new laptop, you have used your XYplorer files from a desktop where the images are in "G:\photos" and they are in "D:\pictures" on a new laptop). This menu item will update the thumbnail caches to reflect the new folder location and all the sub folders without having to rebuild the entire cache.
"Delete Entire Thumbnail Cache" - Careful, as stated it deletes the entire thumbnail cache after a warning prompt.
- ThumbnailMaintenance119.jpg (40.77 KiB) Viewed 7163 times