Local images in Body not shown

Enable Local Image References? is already checked in the collection settings, but local images are not shown in Display view. Assets folder in the example below is right inside the collection folder. I’ve tried several markdown editors, they all show the local image without any problem. Am I missing something or is this a bug?

![local](assets/Notenik-logo.png)

![web](https://ozgur.d.pr/i/kVx3M0.png)

Thanks.

Thanks for reporting. Let me look into this.

1 Like

I think the problem is that, when stashing Notenik files into a subfolder, I also moved the location of the temp_display.html file into the subfolder, which means that local references are no longer working as they should. I’ll have to move that file back into the Collection folder itself.

Ah, I got it! Let’s leave the others where they are, haha!

By the way, I have the same issue with the mirrored html files as well.

Well, since you’ve moved them to a different folder, then local image references will no longer find their original targets. Notenik doesn’t have any current facility for fixing this issue.

Check out the latest beta and see if that fixes the problem of Notes displaying local image files within Notenik.

Local images are back! Thank you!

Only solution would be to use online images, right?

Or placing the .html files together with .md files.

The other two possibilities would be:

  1. to copy your images folder from your Notes collection to the web folder where you’re generating your .html files;
  2. to modify your body text to replace assets/ with `…/assets/.
1 Like

You mean the following?

- Collection folder
    - web folder
        - assets

![](.../assets/01.png)

I’ve already tried that, but in that case Display view is broken! So I think keeping folders separate and relying on online images would be a wiser solution.

1 Like

Well, in terms of #1, you would have to copy the files, not move the entire folder. So the files would be in two places.

In terms of #2, we’d have to do something to modify the img references as part of the mirroring process.

#1 is a good idea: Collection folder/assets would sync with web folder/assets, which is easily doable with any syncing software.

- Collection folder
    - assets (original)
    - web folder
        - assets (duplicate)

Notenik Version 15.6.1 (736).

This morning I added attachments and placed references into the body of a note. These were the first images to be added to a note in this collection so I then selected Enable Local Image References. The images displayed correctly.

This afternoon the images are not being displayed in the body. Closing Notenik and re-opening Notenik, checking settings, etc, has not caused images to display.

I’m not able to reproduce the issue. See attached collection, which seems to be working repeatedly.

Have you looked in the Log window, to check for any helpful messages there?

local image testing.zip (140.6 KB)

I found the issue.

I changed the note title. Notenik modified the image names so that they conformed with the note title. However, Notenik didn’t check the note for references to those files. Subsequently the image references couldn’t be resolved.

1 Like

Ah. Good. Glad you figured it out. Thanks for letting me know.

@Malcolm If an image is in the same folder as the note file, renaming the note also renames the image file. However, if the image is stored within a subfolder (like “assets”) in a collection, the image file name remains unchanged when the note is renamed.

1 Like

@zgr Interesting, that’s useful to know. In this case the images were automatically placed by Notenik into a subfolder called “files.” Notenik created the subfolder and stored the images there in the process of attaching them to the note.