A File Window Tooltip with an Image

Started by sinus, July 04, 2019, 10:32:18 PM

Previous topic - Next topic

sinus

Mario,
just to be sure:

You gave a wunderful tip in this thread, what works GREAT:
https://www.photools.com/community/index.php?topic=9099.msg64008#msg64008

to add an image in the tooltip.

A File Window Tooltip with an image.
Just add this line:

<Image Source="{File.CacheFileName|hasvalue:{File.CacheFileName};default:{File.FullName}}" Width="500" Stretch="Uniform"></Image>

to your File Window Tip setup (Edit > Preferences > File Window Tip).

500 specifies the width of the image. Change as needed.
May not work always, especially not when there is no cache image.
Probably no color management. To proxies.
Just a quick work-around to make a larger image fit somewhere on your 3 monitors.


Now my question, just to be sure:
If I have master-files (in my case a nef) with a visual proxy (jpg), then this tip works not, because the master hat no cache image (or the variable finds it not).

If it is, like it is (no image), then, hm, it is, like it is.  ;D means, no problem.
(or how say the Germans (maybe the Berliners): (wat mut, dat mut) and I would add "wat not mut, dat mut not")
Best wishes from Switzerland! :-)
Markus

Mario

See the documentation of the variable for more information.
This is a hack, not everything will work. Did you at least check what the content of your variable is in VarToy? This should tell you things.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Quote from: Mario on July 05, 2019, 12:26:27 AM
See the documentation of the variable for more information.
This is a hack, not everything will work. Did you at least check what the content of your variable is in VarToy? This should tell you things.

Thanks, Mario
I will do so, check it again and look a bit deeper into this.  :D
Best wishes from Switzerland! :-)
Markus

Mario

File.CacheFileName is empty until the file has a cache file.
Cache files are created by default on-demand - when IMatch needs them (You view the file in the Viewer or QuickViewPanel etc).
Just querying the cache file name variable does not create a cache file of course.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook