How to set an image to link to a specific file?

What I’m trying to do

I have an image on my dashboard that when I click I would like to take me to another file in my vault. I know you can link images to sites (at least I’m pretty sure you can) but I can’t find anything on here, the subreddit or the help docs about specifically linking to another file.

Is your dashboard in Reading view when you click? If so,

[ ![[cat.png]] ](birthday.md)

or

[![[cat.png]]](<obsidian://open?vault=VAULTNAME&file=birthday>)

are options. The image is cat.png, and target note name is birthday in this example.

Thanks this is perfect

At first glance, I thought this was a simple question. But there’s more to it. So…

First you have to know that Obsidian supports two different kinds of links for internal linking:

  • Markdown links, typically in the form [cat](birthday.md)
  • Wiki style links, typically in the form [[birthday]] or [[birthday|cat]]

The same applies for embedding local images:

  • Markdown image embed, typically in the form ![](cat.png)
  • Wiki style image links, typically in the form ![[cat.png]]

If you want an image as a link, you need to place an image embed inside a link. However, there are only some combinations that work and some that don’t.

Placing a wiki embed in a Markdown link does work:

Placing a Markdown embed in a Markdown link should work, but on my side the link doesn’t work as expected. (Might be related to this bug in Obsidian.)

[![](cat.png)](birthday.md)

Placing Wiki or Markdown embeds in Wiki style links seems not to work either. (I haven’t checked if there’s a feature request.)

[[birthday|![[cat.png]]]]
[[birthday|![](cat.png)]]
2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.