# Local images in Body not shown

**URL:** https://discourse.notenik.app/t/local-images-in-body-not-shown/599
**Category:** Bug Reports
**Created:** [October 19, 2024, 5:20am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599 "2024-10-19T05:20:18Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 19, 2024, 5:20am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/1 "2024-10-19T05:20:18Z")

</div>

`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?

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

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

```

 ![image](https://discourse.notenik.app/uploads/db0641/original/1X/535938a460db17afd0d190b592364afbca7c6617.jpeg)

Thanks.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 19, 2024, 4:46pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/2 "2024-10-19T16:46:56Z")

</div>

Thanks for reporting. Let me look into this.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 19, 2024, 5:15pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/3 "2024-10-19T17:15:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 19, 2024, 5:54pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/4 "2024-10-19T17:54:35Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 19, 2024, 7:09pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/5 "2024-10-19T19:09:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 19, 2024, 11:32pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/6 "2024-10-19T23:32:05Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 19, 2024, 11:58pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/7 "2024-10-19T23:58:32Z")

</div>

Check out the [latest beta](https://discourse.notenik.app/t/notenik-15-5-5-available-for-beta-testing-on-october-19-2024/601) and see if that fixes the problem of Notes displaying local image files within Notenik.

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 20, 2024, 3:55am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/8 "2024-10-20T03:55:31Z")

</div>

Local images are back! Thank you!

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 20, 2024, 4:40am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/9 "2024-10-20T04:40:43Z")

</div>

> [@hbowie](#):
>
> Well, since you’ve moved them to a different folder, then local image references will no longer find their original targets

Only solution would be to use online images, right?

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 20, 2024, 1:59pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/10 "2024-10-20T13:59:10Z")

</div>

> [@zgr](#):
>
> Only solution would be to use online images, right?

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

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 20, 2024, 3:39pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/11 "2024-10-20T15:39:34Z")

</div>

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/.

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 20, 2024, 4:05pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/12 "2024-10-20T16:05:52Z")

</div>

You mean the following?

```auto
- 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.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [October 21, 2024, 4:15pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/13 "2024-10-21T16:15:59Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [October 21, 2024, 5:40pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/14 "2024-10-21T17:40:58Z")

</div>

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

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

```

---

<div class="post-metadata">

### Author: ![Malcolm](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@Malcolm](https://discourse.notenik.app/u/Malcolm)
#### Post date: [November 5, 2024, 3:11am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/15 "2024-11-05T03:11:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [November 5, 2024, 10:14pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/16 "2024-11-05T22:14:06Z")

</div>

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](https://discourse.notenik.app/uploads/short-url/vHovz4rsATmHfmmkQ87FH0kV2qX.zip) (140.6 KB)

---

<div class="post-metadata">

### Author: ![Malcolm](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@Malcolm](https://discourse.notenik.app/u/Malcolm)
#### Post date: [November 6, 2024, 2:13am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/17 "2024-11-06T02:13:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [November 6, 2024, 5:44pm UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/18 "2024-11-06T17:44:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zgr](https://discourse.notenik.app/user_avatar/discourse.notenik.app/zgr/32/225_2.png) [@zgr](https://discourse.notenik.app/u/zgr)
#### Post date: [November 8, 2024, 3:56am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/19 "2024-11-08T03:56:36Z")

</div>

@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.

---

<div class="post-metadata">

### Author: ![Malcolm](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@Malcolm](https://discourse.notenik.app/u/Malcolm)
#### Post date: [November 8, 2024, 6:34am UTC](https://discourse.notenik.app/t/local-images-in-body-not-shown/599/20 "2024-11-08T06:34:45Z")

</div>

@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.
