# Image in markdown not appearing

**URL:** <https://forum.getkirby.com/t/image-in-markdown-not-appearing/19538>\
**Category:** Questions\
**Tags:** v3\
**Created:** [September 28, 2020, 3:50am UTC](https://forum.getkirby.com/t/image-in-markdown-not-appearing/19538 "2020-09-28T03:50:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbourg](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rbourg](https://forum.getkirby.com/u/rbourg)\
**Post date:** [September 28, 2020, 3:50am UTC](https://forum.getkirby.com/t/image-in-markdown-not-appearing/19538/1 "2020-09-28T03:50:20Z")

</div>

Hello!

First time Kirby user. I have everything working except for getting an image within the same folder to appear on the page.

The image is in the same folder (called about) as the .txt file. In the .txt file I have  
`(image: image.jpg)` within a _Body: field_. In my template, I have  
`<?= $page->body()->kirbytext() ?>` that is producing an image tag, though the path seems very off: `http://localhost:8000/media/pages/about/f8f1fcf4e6-1601263720/image.jpg`

No image is appears on the page however.  
What am I doing wrong?  
Thank you 🙂

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [September 28, 2020, 6:57am UTC](https://forum.getkirby.com/t/image-in-markdown-not-appearing/19538/2 "2020-09-28T06:57:10Z")

</div>

Welcome to the comunity 🙂

This is actually how kirby works. It uses a media folder and copies your image to it. Amongst other reasons, this is so that you can do things like cropping and resizing without cluttering up the content folder or effecting the original image. When the file changes, that path will change.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 28, 2020, 7:36am UTC](https://forum.getkirby.com/t/image-in-markdown-not-appearing/19538/3 "2020-09-28T07:36:59Z")

</div>

Does your server meet our [requirements](https://getkirby.com/docs/guide/quickstart#requirements), in particular, is the gd library module installed and enabled?

If you look in the media folder, are the image files generated there?

---

<div class="post-metadata">

**Author:** ![rbourg](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rbourg](https://forum.getkirby.com/u/rbourg)\
**Post date:** [September 28, 2020, 7:48am UTC](https://forum.getkirby.com/t/image-in-markdown-not-appearing/19538/4 "2020-09-28T07:48:20Z")

</div>

Thanks!

Your reply made me look at the media folder more closely. I saw there was no image being generated in there. It was a file permission issue.

In the docs, Kirby says to make folders with permissions 755. However, at that level for the media folder, it wasn’t writing so I changed it to 777 and all is well now. I never thought to change this according to the docs.

Thanks for the clue and clarification!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 28, 2020, 7:51am UTC](https://forum.getkirby.com/t/image-in-markdown-not-appearing/19538/5 "2020-09-28T07:51:33Z")

</div>

Even the media folder should not have 777 access rights. This folder is automatically regenerated by Kirby if it gets deleted.

Better look into file/folder ownership and leave permissions at 755.
