Embed local images with dataview that works cross-platform

I want to embed LOCAL images in a dataview table and that it works on multiple devices.

I managed to embed REMOTE images with dataview, like this:

("![Imgur | 30](" + this.icon-url + ")")

But I want to do this with LOCAL images. The only way I managed to it is with a path that is device dependent, which is not the way to go when using obsidian on multiple devices.

("![Image | 30](" + this.icon-local-path + ")")

Does anyone know how to achieve this with links like this; ![[image.png]] or with an obsidian link like this; ![image](obsidian://vault/<path to image>.png)? The ‘path to image’ will be dynamic in this code.

1 Like

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