How to integrate image into IMatch Notepad?

Started by Jim K., February 28, 2024, 04:36:29 PM

Previous topic - Next topic

Jim K.

Unfortunately I fail to integrate an image in IMatch Notepad.
I tried with jpg and png files, both stored directly under IMatch6 or (as described in IMatch Help) in a subdirectory.
No success, it always shows text lines but no images. The path I use to image files is correct. 
Example:

Markdown:

## Test: image in IMatch Notepad

full path, slash

![](C:/Users/JK/AppData/Roaming/photools.com/IMatch6/yyy.png)

full path, backslash

![](C:\Users\JK\AppData/Roaming\photools.com\IMatch6\yyy.png)

use of userdatafolder, slash

![](userdatafolder/yyy.png)


Result shown in IMatch Notepad is:

Test: image in IMatch Notepad
full path, slash



full path, backslash



use of userdatafolder, slash



What do I wrong. Is there something to add in addition to ![](....) to indicate that there is an image to show in Markdown?
Thank's in advance for your help

Jim

thrinn

I think the path in the help is outdated because the App changed its name some time ago.
Try to store your image in
C:\ProgramData\photools.com\imatch6\webroot\imatch\apps\imatch-notepad\images
Then, in the IMatch Notepad, use this path to access the image:
![](images/test.png)
Thorsten
Win 10 / 64, IMatch 2018, IMA

Jim K.

Hi Thorsten,

indeeed the path was the problem. Now it works perfectly.
Thank you!

Jim

P.S.
I will leave a short note in sub-board "Online Help and other Documentation" that Help to "IMatch Notepad" should be updated.

Mario

#3
Do not store anything in
C:\ProgramData\photools.com\imatch6\webroot\imatch\apps\
This folder is under control of Windows installer and will be removed and re-created when a new version of IMatch is installed. Your images will be lost, most likely.

The IMWS in IMatch provides a virtual folder /userdatafolder URL that allows you to store stuff in your user-specific folder hierarchy and reference it in IMatch apps, including IMatch Notepad.

I noticed that the IMatch Notepad documentation was missing the leading / so the example did not work.

For an image stored in

"C:\Users\USER-NAME\AppData\Roaming\photools.com\IMatch6\images\cookies.png"

(open in Windows Explorer via %APPDATA%)

you reference it as

![](/userdatafolder/images/cookies.png)

I will add the missing / to the help topic.

Image3.jpg
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook