Embedding images from outside vault folder as Bases Image Property

Use case or problem

I link to (transclude) images outside of the vault folder by using the

![name](<file://E:\a folder\mypic.png>)

syntax to avoid putting too many imagines into the sync’ed folders with the understanding that these files won’t be available on my other devices. However, these transclusions do not work as cover images for Bases when either include explicitly as a property, or via the files.embeds construction:

file.embeds.filter(value.containsAny("png","jpg","webp","svg","jpeg")

Proposed solution

Making transcluded images work for either a property or count as an embed within file.embeds would be great.

Current workaround (optional)

None. The file needs to be in the vault folder for it to be usable as a image for Bases.

EXTERNAL images work for card view cover image. You just have to use an image property with value file:///path/to/file.png (no markdown syntax here).

1 Like

Edit: This works great. Thank you!

If anyone is looking for details for doing this on Windows, for a file at E:\fire truck.jpg, you can set the file property

cover: file:///E:/fire truck.jpg

This works even though the text does not change to a hyperlink style.

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