Thumbnail Preview in FileWindowTip

Started by ben, March 13, 2023, 05:57:08 PM

Previous topic - Next topic

ben

Hello dear community,

is it possible to show a thumbnail or preview of the selected file in the FileWindowTip?
If not would are there other possibilities?

I am mostly working on a laptop and therfore have the preview panel not open and not floating most of the time.
Often it would be helpful to get a bigger image view without opening the viewer or the preview panel.

Thanks
Ben

Mario

Maybe the Gallery File Window Layout will be useful?
Or using the slider to make the thumbnails bigger?

Support for <Image> in XAML is pretty limited. IMatch does not use this.

But I think this will do the trick:

<Image Source="{File.CacheFileName|default:{File.FullName}}" MaxHeight="300" MaxWidth="300" Stretch="Uniform></Image>
Note that this can only work if the image does not need a cache image (JPG) or when the cache image has already been created.
The variable I've used uses the cache file name of the file, and if there is none, falls back to the file name of the file itself.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ben

Do I need to add anything else?
I simply copied the code line, but get the result as attached


Mario

Sorry, somehow deleted a " after the word Uniform.
This should work:

<Image Source="{File.CacheFileName|default:{File.FullName}}" MaxHeight="300" MaxWidth="300" Stretch="Uniform"></Image>
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ben

It works now, thanks.

Though it has some limitations (as you wrote).
Image is not rotated and it takes away space for my regular filewindow tip.

Is it worth a FR?
Maybe CTRL + "mouse at corner" shows the alternative pop up with the thumbnail.
I am using such a function in my file explorer and it comes handy very often.
Would it be doable with reasonable effort?

Ben

Mario

Feel free to file a feature request so we can learn if this is an issue that other users would like to see solved.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook