It will take a few minutes to set it up, but once done, you'll be able to view your thumbnails in a gallery mode with no padding, caption or borders. If you have your normal thumbnail configuration is already set that way, you could have just the opposite arrangement (i.e., have the new thumbnail viewing mode display thumbnails with captions and gaps and borders. The point is it gives you the flexibility to have it both ways. If you'd like, you could also modify other viewing or arrangement features in the new mode like have completely different thumbnail sizes, no navigation panel, no tabs bar, no toolbar, and even the backgroung color.
1.) Start by going into the menu File | Settings Special | "Save Copy of Configuration As..." to save your current XYplorer.ini configuration as XYplorer_Gallery.ini.
2.) Now load the new ini file by going into the File | Settings Special menu again and this time use the Load Configuration menu to load your new ini file, XYplorer_Gallery.ini.
3.) Once the new ini file is loaded, go to Tools | Configuration | Thumbnails and change settings to your hearts content, to the new or different features you'd like for you gallery mode. Note: the header for the Config dialog should display XYplorer_Gallery.ini. For example I checked off, "Zoom to Fill", since I normally don't have it ON. I also changed the Padding to "0", Style to "Plain" and unchecked Show Captions. Most importantly while in that config screen, go to "Cache thumbnails on disk" and make sure it is checked and use the "..." box to enter a new thumbnails cache folder called GalleryThumbs. With the XYplorer folder selected, select make New folder (or you can make the new folder first within XYplorer). I made made my new folder directly off the XYplorer folder. You on the other hand, may have a XY data folder in that case you could make it off the XYdata folder. In any case, you can make it at the same level as the normal "Thumbnails" folder.
4.) Once done, save all your setting changes. They'll be saved to "XYplorer_Gallery.ini".
5.) Now go back to the File | Settings Special | Load Configuration... and load your original ini file, XYplorer.ini.
6.) Now we're ready to modify the posted script to your system (save as UTF-8 with BOM).
a.) I've added some notes to the script where you have to use your own picture folder. You'll want to replace what I have for variable $DIR_PICS ("H:\Pictures") with an parent image folder which has multiple subfolders of images such as "G:\Wallpaper" or "D:\Photos".
b.) Change the icon referred to as variable $ICO_PICS if you like to one of your choosing. I referred to a generic XY built-in one. You could use something like "<xyicons>\k321-icon-219.ico".
c.) You can also add individual separate folders that you would like to view in gallery mode as an example in line #9 of script. Save your script changes.
d.) Lastly, create a user button, CTB or user command to invoke the script or try it out first by hi-lighting the script and select Load selected script file from the scripting menu.
e.) When you run the script a list of the image folders should be displayed, pick one and the thumbs will be displayed in gallery mode (no padding (no gaps), Plain Style (no border), no Captions, and "Zoom to Fill" is ON) or however you established your settings in XYplorer_Gallery.ini. Important though, with the first run on any particular folder, XY will take time to generate the thumbnails before you actually see the new 2nd instance of XY display. On subsequent runs on a folder previously viewed, the thumbnail display should be very quick as it normally is.
f.) Click on the corner X to exit the 2nd instance of XY. I also have a customized keyboard shortcut set for the ` key to exit a second instance of XY with this one liner, if(get("instance") == "2") {exit n}.
Code: Select all
"Main";
//*** Change your version to use a parent folder in which you have subfolders of images like "G:\Wallpaper\1920x1080"
//*** where you have many subfolders of images like Canada, Ireland, Brazil under it.
$DIR_PICS = "H:\Pictures";
//*** Change the icon referenced here to one of your choosing like "<xyicons>\k321-icon-219.ico"
$ICO_PICS = :viewthumbs;
//*** You can add specific individual folder(s) here if you like in the same manner as I've added the "Kindle" folder below.
$AllPicFolders = listfolder("$DIR_PICS", "*", "2", "|") . "|" . "G:\PDFs and Books\Kindle\";
$menu= ""; unset $MenuCaller;
foreach ($PicFolder, $AllPicFolders, "|") {
if !(listfolder($PicFolder, "*", 2 + 32) >= "1") {
$PicFolderBase = getpathcomponent($PicFolder, "base");
$menu = $menu . " ● $PicFolderBase" perm $MenuCaller = "$PicFolder" . ";" . "<crlf>";
}
}
$PICMENU = """ PHOTO FOLDER THUMBS|$ICO_PICS""" . ";" . "-" . "<crlf>" . "$menu";
load($PICMENU, , s);
if (isset($MenuCaller) == "1") {
// *** It makes sense to maximize the pane if you're only viewing thumbs (e.g., turn the nav panel off, etc). If you have saved layouts use that instead.
run """<xy>"" /ini=XYplorer_Gallery.ini ""$MenuCaller"" /script=""::if get(#663){#663};if get(#662){#662};if get(#661){#661};if get(#1061){#1061};if get(#665){#665};if get(#800){#800;}"""; }
else {end (1);}
"_Terminate";
unset $MenuCaller;Good luck and please let me know if you have any problems.
Ken
XYplorer Beta Club