Thumbnail Viewer

Discuss and share scripts and script files...
klownboy
Posts: 4399
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Thumbnail Viewer

Post by klownboy »

Hi, A simple script to display thumbnails of your wallpaper, photos, icons, pdf files, etc in the full XY window with no bars once-so-ever. See clip.
Edit: Updated on Nov 10, 2013 to streamline code and to also account for the Breadcrumb Bar.
ThumbnailViewer.JPG
ThumbnailViewer.JPG (25 KiB) Viewed 8189 times
no_bars.PNG
no_bars.PNG (319.15 KiB) Viewed 7758 times
It will change XY to go minimalistic (no menu bar, address bar, toolbar, status bar, navigation panel) such that you're viewing your thumbnails or whatever using the XY's full realestate. Because of that I tend to use this method in lieu of using tabs to quickly go to folders containing pictures/icons/pdfs in thumbnail view. Like I said, simple but sometimes simple is a good thing. I've made a toolbar button called "Thumbnail Viewer" to load the script e.g.,load("<xyscripts>\ThumbnailViewer.xys"). Obviously, you would have to customize/tweak the folders/script/icons to where you want to go to view your thumbnails but you get the general idea.

Code: Select all

"Icons|:viewthumbs" goto "d:\graphics\icons";
    sub _expand_it;  //these commands will provide a clean uncluttered XY, a must for for viewing thumbnails
"Skerries, Ireland|D:\Graphics\Icons\Picture.ico" goto "G:\Pictures\Ireland Trip 2011\2011-07-02";
    sub _expand_it;
"All Ireland Pics|D:\Graphics\Icons\k321-icon-218.ico" goto "G:\Pictures\Ireland Trip 2011";
    sub _expand_it;
"Maine|D:\Graphics\Icons\Picture.ico" goto "G:\Pictures\Maine\Bailey Island 06-19-2012";
    sub _expand_it;
"Cascade Falls|:viewthumbs" goto "G:\Pictures\Cascade Falls";
    sub _expand_it;
"Wallpaper|D:\Graphics\Icons\wallpaper.ico" goto "g:\Wallpaper\1920x1080";
    sub _expand_it;
"Ireland Wallpaper|D:\Graphics\Icons\Picture.ico" goto "G:\Wallpaper\1920x1080\Ireland";
    sub _expand_it;
"New River Trail|D:\Graphics\Icons\k321-icon-219.ico"  goto "G:\Pictures\New River Trail";
    sub _expand_it;
"England|D:\Graphics\Icons\Picture.ico" goto "G:\Wallpaper\1920x1080\England";
    sub _expand_it;
"The Channels|D:\Graphics\Icons\k321-icon-218.ico" goto "G:\Pictures\The Channels";
    sub _expand_it;
"_expand_it";
      if get(#660) {#660;}    // Address Bar
      if get(#661) {#661}     // Toolbar
      if get(#662) {#662;}    // Tab bar
      if get(#663) {#663;}    // Nav Pnl
      if get(#665) {#665;}    // Info Pnl
      if get(#670) {#670;}    // Status Bar
      if get(#671) {#671;}    // Breadcrumb Bar
      if get(#1061) {#1061;}  // Menu Bar
      if get("#800") {#800;}  // Dual Pane
      end (1==1);
To make it easy to quickly get back to your home base (i.e., with all the bars you had before) since you are left in a state where you have no menus etc., I set up a user command with a keyboard shortcut similar to this.

Code: Select all

   #552;#1040;#1009;goto "C:\";
     if get(#660) {#660;}    // Address Bar (if you normally work with the Address Bar put a "!" in front of "get")
     if !get(#661) {#661;}   // Tool Bar
     if !get(#662) {#662;}   // Tab bar
     if !get(#663) {#663;}   // Nav Pnl
     if !get(#664) {#664;}   // Show Catalog
     if get(#665) {#665;}    // Info Pnl
     if !get(#670) {#670;}   // Status Bar
     if get(#671) {#671;}    // Breadcrumb Bar  (if you normally work with the BC Bar put a "!" in front of "get")
     if !get(#1061) {#1061;} // Menu Bar
     if get("#800") {#800;}  // Dual Pane
I welcome any ideas or improvements.
Thanks,
Ken
Last edited by klownboy on 10 Nov 2013 18:12, edited 1 time in total.

Slavaon
Posts: 158
Joined: 29 Mar 2012 07:35

Re: Thumbnail Viewer

Post by Slavaon »

Thank you very much. That works perfectly.

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

Re: Thumbnail Viewer

Post by klownboy »

Thank you Slavaon. Once you've taken the time to initially set it up, I think it's worth it. If you have a decently fast computer, those changes for turning on and off the various bars (i.e., tool, menu, status, address bars etc.) are barely noticeably.
Ken

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

Re: Thumbnail Viewer

Post by klownboy »

Updated this little thumbnail viewing script in the first post to streamline the code (it's been quite awhile) and to account for the new Breadcrumb Bar. As I'm taking more and more pictures, I use this little script (or similar) assigned to a CTB menu more than anything else to view photo thumbnails in XY and in-turn the pictures via MDBU, etc. Obviously change the icons referred to and the folders containing photos to your own.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Thumbnail Viewer

Post by yusef88 »

very helpful script,thanks

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

Re: Thumbnail Viewer

Post by klownboy »

You are quite welcome. You could set up the second little script as a the normal "left" click of a CTB, which will quickly get you back to your normal XY bar arrangement no matter what you're doing and set-up the thumbnail viewing menu script as a "right" click of the same CTB. As I mentioned above, assign the short script also to a User Defined Command/Customized Keyboard Shortcut as well - for times when you have no toolbar to get you back to your normal XY bar arrangement. Of course preset your photo or wallpaper folders to your desired thumbnail view with Folder View Settings. Thanks.
Ken

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Thumbnail Viewer

Post by yusef88 »

that's what I did, using your scripts with Keyboard Shortcuts
thanks agian
Image

HattedExplorer
Posts: 3
Joined: 15 Jan 2014 20:17

Re: Thumbnail Viewer

Post by HattedExplorer »

Hi folks,

I'm a new licensee and enthusiastic newbie. I'm getting used to the software and trying to read up as much as I can, but I have a suspicion that this may be a common question, so let me ask for your indulgence at the outset. This thread seems semi-related, and the participants well-informed so I'm posting here, but would appreciate advice if this type of question should go elsewhere in the forum.

I'm getting into XYplorer because I believe many things are programmable/scriptable, and there's a good chance that many different views are configurable. I'm a musician, and I'm hoping to configure a particular file view and make its behavior my default (or close to that effect). You can only underestimate how much value I'll get from my envisioned technique, if I can achieve it.
Prototype
Prototype
XYplorerView.jpg (95.3 KiB) Viewed 7592 times
I've created the attached image as a prototype of my vision (it uses the "chrome-ing" of XYplorer, but it's an edited screencap). When selecting a directory in the tree view on the left (1), a details view would open on the right (2), and a "particular image" would be loaded in a display-only area (3). Now, I say "particular image," and I've illustrated it with an album cover here, but I would like to use this for many settings in which a particularly salient image exists-- and I'm willing to work with the software if, for instance, that image always has to be a JPG, and always has to be named something special, like "cover.jpg" especially since multiple images may appear in that directory.

Note that I want the auto-preview capability to happen, well, automatically, without highlighting the image in the details view. This would allow arrowing-down the directory section on the left, the right-hand pictures would change, etc.

I mentioned that I'm a musician, and I have a need to stay agnostic from audio players (iTunes and the like), so any particular view tuned to their expectations probably wouldn't work out-of-the-gate, but admittedly could be tuned.

Besides directories of albums, computing musicians also use software incarnations of our instruments or effects (VSTs) which we're lucky enough to encounter free, or that we purchase. These proliferate like crazy, and I would make this use of XYplorer the backbone of my organizational strategy-- capture images for each VST, display it when scrolling, and when the correct picture is displayed, make use of the files in the details view-- most likely firing up the instrument, reading its docs, filing related files, etc.

Thanks for reading over the post, and for any advice or help you may have.

-HattedExplorer

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Thumbnail Viewer

Post by FluxTorpedoe »

Hi' and welcome to the XY Universe!

AFAIK, XY is one tweak short of getting you where you want.
1. Arrange the view:
- Put XY in single pane (F10) and "Details View" —and click on an image [the missing tweak]
- Open the integrated preview (CTRL+Q)
> You'll get something looking a bit like your screenshot (but with the preview below)

2. Now, to get the "auto-selection" of an image:
- Rename the cover so it's the first listed (e.g. "_ Cover_.jpg")
- Post a wish for a tweak like: AutoSelectFirstFileOnUpdateTree :whistle:

- - - - - - - - -

Now, if you're open to the way you want to visually access/identify VST(i)s folders to manage them... well, my first reflex would be to use my CollectionManager script —with probably an enhancement...
Hmmm, that raises my interest! :shock:
Well, I suggest you give it a try to see how it could fit your needs: CollectionManager.
But anyway, I'm definitely interested in updating it with your approach in mind!

Quick draft: you could filter which kind of VST you're after, then you'd be presented with a thumbnails view of all/filtered VSTs (all this is already possible), then double-clicking an image would open its containing folder!... :idea:
"Coming to a theater near you" next week I think. ;)

Have a nice day, 8)
Flux

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Thumbnail Viewer

Post by Marco »

It's doable right out of the box.

0. Enable the Dual Pane view (F10) and set it with an horizontal divider, as per your mockup (by default XY already goes Dual Pane like this)
1. Go to the parent folder containing all the albums in both panes
2. Enable Sinc Browse
3. Now, in the top pane enable a Visual Filter (and set it persistent across folders - default in a fresh XY) like "Cover.jpg" (or whatever you plan to name the album thumbnails) and set the List view to Thumbnails #3 (the largest size, configurable)
4. In the bottom pane you should already be in Details view as factory default, so it's ok

Done!
Only caveat(s):
* the image is not centered in the pane
* you may want to script all this if you plan to use XY "normally" as well, I mean without all this setup. It would be trivial, a matter of a toolbar button.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Thumbnail Viewer

Post by FluxTorpedoe »

Wow!!! Wicked use of Sync Browse... :twisted:
That's really clever! :appl:

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Thumbnail Viewer

Post by LittleBiG »

FluxTorpedoe wrote:Wow!!! Wicked use of Sync Browse... :twisted:
That's really clever! :appl:
Indeed! I wasn't too excited about the Sync Browse. I thought I had a good folder synchronizer, so why to compare folders visually in an old school way. But this solution fully justifies the presence of this feature in XY. I am totally convinced now. Thanks, Marco.

HattedExplorer
Posts: 3
Joined: 15 Jan 2014 20:17

Re: Thumbnail Viewer

Post by HattedExplorer »

Thank you, Marco! I need to trace your steps again, and see if I can get things quite right (your instructions are good, so I think it's me! :oops: ). Can you elaborate a moment more on the button you mentioned? Would this allow me to make this "linked/sync'ed" behavior active, and then inactive. That could be nice. Like I said, I'll get a lot of mileage out of it, just maybe it won't always be the mode I want to use.

At a certain point, I did make a funny view the default, despite being properly warned. :shock: :roll:

I'm sure I'll get it. I'm 90% there. Along the way (and as LittleBig mentions) I became more impressed with XY at every turn.

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Thumbnail Viewer

Post by FluxTorpedoe »

Regarding Marco's great tip: right-click toolbar > "Customize Toolbar..." > "Sync Browse" (in the available buttons). You can also find "Sync Browse" in menu "Panes".

- - - - - - - - -

@HattedExplorer
Well, your (maybe unrelated) request gave me a boost... ;)

If you want to give a try to the Collection Manager script for your VST management purposes, download and install it, then run it and:
• Add new collection
> Enter a name for your collection (e.g. "VST")
> Enter the extension of your screenshots (e.g. just press enter to use "jpg")
> Browse to the path where your VSTs are located

• Now you're ready to use it: click on Collection Manager button > Click on "Find VST..." > OK
> Enjoy!
>> You can double-click each screenshot to automatically open its folder in the other pane.

Well, tell me what you think if you use it.
If not, no problem: it serves my purpose too... 8)
Flux

HattedExplorer
Posts: 3
Joined: 15 Jan 2014 20:17

Re: Thumbnail Viewer

Post by HattedExplorer »

And thank you Flux! I believe I will give your script a go...

I don't seem to be able to do one thing that Marco mentions:

3. Now, in the top pane enable a Visual Filter (and set it persistent across folders - default in a fresh XY) like "Cover.jpg" (or whatever you plan to name the album thumbnails) and set the List view to Thumbnails #3 (the largest size, configurable)

As I scroll down the folders in the left pane, the sync is retained, but the visual filter is lost.

Lastly, I'm using an option called "Sync Scroll," I don't seem to have "Sync Browse." I assume that's what folks meant, but just to be clear... 8)

I investigated the pages describing your script-- it looks quite good as well. I will install it and let you know how it goes!

Post Reply