# How to include images into a FORD documentation?

**URL:** <https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614>\
**Category:** Help\
**Created:** [January 10, 2026, 4:23pm UTC](https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614 "2026-01-10T16:23:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [January 10, 2026, 4:23pm UTC](https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614/1 "2026-01-10T16:23:18Z")

</div>

In the `README.md` of [ForColormap](https://github.com/vmagnin/forcolormap), I have a logo which is displayed by GitHub thanks to that markdown code:

```markdown
![](logo/logo_forcolormap-roma_8.svg)

```

But it does not appear in its [FORD documentation](https://vmagnin.github.io/forcolormap/). As I would like to add a few more images into that README, I would like to see them in the FORD doc. But I have found no information in the [documentation](https://forddocs.readthedocs.io/en/stable/index.html) of FORD while searching for keywords like `picture` or `image`.

@jacobwilliams has used a HTML tag in his `README.md` to make his logo appear in the FORD [documentation of his JSON-Fortran](https://jacobwilliams.github.io/json-fortran/) library:

```html
<h1 id="json-fortran"><img alt="JSON-Fortran" src="/media/json-fortran-logo-2.png" title="JSON-Fortran logo"></h1>

```

Are you aware of other possibilities?

---

<div class="post-metadata">

**Author:** ![fxm](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/fxm/32/5726_2.png) [@fxm](https://fortran-lang.discourse.group/u/fxm)\
**Post date:** [January 10, 2026, 4:37pm UTC](https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614/2 "2026-01-10T16:37:19Z")

</div>

This should work in principle. Are you sure the relative path is correct?

I’m generating [documentation for FSML](https://fsml.mutz.science/) with FORD and include an image in my [doc.md](https://github.com/sebastian-mutz/fsml/blob/master/doc.md) with

```toml
![FSML modules. \label{fig:fig1}](media/fig/modules.png){ width=40% }

```

In the same file, I also specify the media directory (where figures are copied to) relative to the generated documentation root directory.

I can also have a closer look at your ForColormap files later.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [January 10, 2026, 4:44pm UTC](https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614/3 "2026-01-10T16:44:58Z")

</div>

> [@fxm](#):
>
> This should work in principle. Are you sure the relative path is correct?

Thanks @fxm for your answer. My code is similar to yours. Maybe the problem is just that my logo is a SVG file and FORD does not manage that format? (but isn’t it managed rather by the browser?)

In that case, I will soon see it as I have included two PNG files in the README.md in my development branch. When I will merge that branch next week and regenerate the FORD doc, I can hope seeing my pictures, like your.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [January 10, 2026, 4:50pm UTC](https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614/4 "2026-01-10T16:50:19Z")

</div>

And @fxm , how did you make your nice “Developer Info” frame with your avatar in your FORD doc?

---

<div class="post-metadata">

**Author:** ![fxm](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/fxm/32/5726_2.png) [@fxm](https://fortran-lang.discourse.group/u/fxm)\
**Post date:** [January 10, 2026, 4:57pm UTC](https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614/5 "2026-01-10T16:57:40Z")

</div>

I just tested this. FORD handles SVG fine. The problem is that the path you specify is not relative to the generated `doc/` root directory and your `logo/` folder isn’t copied over. If you manually copy your logo folder into the docs folder, it will show up:

 ![Screenshot_20260110_165302](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/9/9f64d358fcb744bb0a6fd8757b2889d8eff43949.jpeg)

One reason I created a separate doc.md file from the README.md was to have more flexibility (differences to what’s displayed on GitHub), and I specifed a lot of FORD options in the header, including the media\_dir as well as developer info, including the picture, which is just a link to my GitHub profile picture:

```auto
author_pic: https://avatars.githubusercontent.com/u/46564062?v=4

```

You can check the header of [doc.md](https://github.com/sebastian-mutz/fsml/blob/master/doc.md). In the online FORD documentation, [this page](https://forddocs.readthedocs.io/en/stable/user_guide/project_file_options.html) has a more complete list of options.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [January 10, 2026, 5:05pm UTC](https://fortran-lang.discourse.group/t/how-to-include-images-into-a-ford-documentation/10614/6 "2026-01-10T17:05:33Z")

</div>

Thanks a lot @fxm ! I will try next week to add a `doc/` directory and I will study the way you use your FORD doc. Until now, I was just using the `README.md` and the generated API tabs. But I can see with your Handbook section that I can do much more.
