Floating Preview Associations

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Floating Preview Associations

Post by Enternal »

It just hit me today about something. There are many times that I want to associate image files with XYplorer's floating preview. The current method that I have been using for a very very long time was simply have a Floating Preview toolbar item and then click it when I want to view images with it. Then it hit me:

Code: Select all

"XYplorer Float Preview" bmp;jpg;jpeg;gif;png>#178;
:shock: :shock: :shock:
I feel that a lot of people probably know about this already but nobody ever really told me about it when I asked a while back. Unless they don't either.

Well, now image viewing is complete for my portable installation on my flash drive :biggrin:. However for my home setup, I still prefer using JpegView as my primary image viewer and IrfanView and FastStone MaxView as my backup heh.

On a related topic, Don, do you think of ever having the floating preview share the same capabilities with the preview that's shown in the Preview tabs (able to display text and such)? Or is it not possible because they're completely separate code-wise?

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

Re: Floating Preview Associations

Post by yusef88 »

Enternal wrote:I still prefer using JpegView as my primary image viewer
nice program thanks for referring to , do you know how to navigate images using the mouse wheel?
=====
NavigateWithMouseWheel=true
it changes nothing

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Floating Preview Associations

Post by bdeshi »

One of the first improvements I did after discovering all the scripting stuff:

Code: Select all

"XyPreview|<xyicons>\xyplorer.ico" jpg;jpeg;png;gif;bmp;tif;tga;psd;xpm;pbm;pcx>#178;
(don't know if all those formats get previewed, they're there just in case! ;-) )

I also have this (kids love playing flash games! :) )

Code: Select all

swf>::setlayout("InfoPanelHeight=700");#174;
This one's also great for quick video preview.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Floating Preview Associations

Post by Enternal »

yusef88 wrote:
Enternal wrote:I still prefer using JpegView as my primary image viewer
nice program thanks for referring to , do you know how to navigate images using the mouse wheel?
=====
NavigateWithMouseWheel=true
it changes nothing
That's weird. It should work. Also make sure:

Code: Select all

StoreToEXEPath=true
since that will tell JPEGView to store all the configuration in the same file as the main executable and therefore, use the JPEGView.ini file that is already present as the main file.
Try using my ini if it still does not work.
JPEGView.zip
(6.76 KiB) Downloaded 153 times
It's a great program but configuration is definitely not user friendly since it's all done through the ini. However, it's fast (it takes advantage of multicore systems) and you can definitely feel it at times. It now also support animated gifs heh.

@SmmaySarkar
Hahaha that's nice! The floating preview don't preview anything after bmp if I remembered correctly. But yeah, so simple and neat! Don should really advertise that somewhere.

The swf is a neat idea! Although I rarely ever download flash files directly since a lot of them have protections. Otherwise I would definitely download all games from http://www.ferryhalim.com/orisinal/ by Ferry Halim. Awesome games by the way. Always loved them and always will.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Floating Preview Associations

Post by bdeshi »

Enternal wrote: @SmmaySarkar
Hahaha that's nice! The floating preview don't preview anything after bmp if I remembered correctly. But yeah, so simple and neat! Don should really advertise that somewhere.
Thanks. Would be so much better if the floating preview inherited the normal InfoPanel preview associations instead of defaulting to raw view...
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Floating Preview Associations

Post by TheQwerty »

Small suggestion... Just calling #178 will cause it to close if already open, instead try:

Code: Select all

if (! Get('#178')) { #178; } // Floating Preview
OR
if (! Get('#178')) { #1003; } // Full Screen Preview
That's not a typo in the second one - Full Screen Preview is actually a full screen Floating Preview.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Floating Preview Associations

Post by bdeshi »

I just have to remember to single-click the next to-be-previewed file instead of double-clicking. That way, that file gets focused by the preview window(floating preview) or tab (info panel preview). And yes, your suggestion is better, but I've gotten used to doing that (saves a click too!) .
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Floating Preview Associations

Post by klownboy »

There are admittedly much more features in JpegView (I especially like it's fixed cropping features), but I prefer ImageEye for viewing in a window since it offers a very clean no non-sense, no border, no titlebar view similar to Don's MDBU view. It's just as fast or faster and it offers excellent dithering and resampling. I still wish Don would have incorporated the capability to move on from one picture to the next from the MDBU view (i.e., you click on the picture (in the stay up mode) and you're then able to move on to the next picture by arrow button or mouse wheel). I wouldn't be using anything else but for editing if that feature was present. I just love the clean uncluttered look of MDBU at least for windowed viewing.

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Floating Preview Associations

Post by Enternal »

@ TheQwerty
Ah! Thanks for the suggestion. That indeed is a better one.

@klownboy
Hmm... I will take a look at ImageEye then. Looking at the interface though makes me feel a bit of nostalgia for some reason. Probably because it somehow reminds me of Dreamweaver 4/MX and many older apps back in the day.

I recently also found HoneyView which also offers now titlebar and other nonsense although it does have a border but minimal. That one comes with the ability to browse images in archives so it's very useful for my case and how I use it. However it's set as my alternative viewer in XYplorer together with IrfanView and FastStone MaxView.

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

Re: Floating Preview Associations

Post by yusef88 »

@Enternal
very thanks

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

Re: Floating Preview Associations

Post by klownboy »

There's an option in ImageEye to only show the titlebar and border when the mouse is hovering over the image so if you use the mouse wheel to move between pictures and it's off the picture, the title bar is not shown. It actually has a very very thin border. It may indeed invoke some nostalgia, it's been around for 20 years. There's also has a x64 version. Like makecoffee, it will show png files with the transparent background so it's ideal to have a "play" or "Vu" custom column script using image view so it opens the image, displays it for a few seconds and then closes like this...

Code: Select all

open "D:\Graphics\Image Eye\Image Eye.exe" "<cc_item>" "-zoom=.7";
wait 2000;
run "D:\Graphics\Image Eye\Image Eye.exe" "-close";
Here I'm viewing or should I say previewing the picture at 70% size for 2 seconds and then automatically closing it. You can also do same similar with a PFA script and it works great, but use openwith without <cc_item>.
Ken

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Floating Preview Associations

Post by Enternal »

I got to say but I'm liking ImageEye and your script. Now I just added another alternative image viewer to my list (currently there XY's float preview, IrfanView, MaxView, Honeyview, and this) :D Why do I have so many? Because I can. Haha. Thanks!

CookieMonster

Re: Floating Preview Associations

Post by CookieMonster »

SammaySarkar wrote:One of the first improvements I did after discovering all the scripting stuff:

Code: Select all

"XyPreview|<xyicons>\xyplorer.ico" jpg;jpeg;png;gif;bmp;tif;tga;psd;xpm;pbm;pcx>#178;
(don't know if all those formats get previewed, they're there just in case! ;-) )

I also have this (kids love playing flash games! :) )

Code: Select all

swf>::setlayout("InfoPanelHeight=700");#174;
This one's also great for quick video preview.
Sammy, does this script work for you ? When I assigned the script to a button in XYplorer, I get repeated errors ?

I wish XYplorer preview could scroll vertically !

RalphM
Posts: 2051
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Floating Preview Associations

Post by RalphM »

Hi CookieMonster

The lines you're referring to are no scripts but PFA entries, so copy and paste them into your PFA list and use them via the PFA button.
Only klownboy's lines a bit further up are scripts to open images with Image Eye.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

Post Reply