Advice on adding queryable metadata to Images

What I’m trying to do

I want to add metadata that dataview can Query to Images, so
ImageTitle, ImageDoc and ImageDescription and then add it as a direct link “![]” into an MD file

option1: Create a fileclass with plugin metadata menu with the desired fields, create an .md file with the same name as the .png, give that md the fileclass, add the fields in frontmatter and in the body of the md add ![[nameofthepng.png]]

option2: Same steps instead of creating an md, create an excalidraw with the same name, add the png and add the fields in frontmatter

or is there a better option 3?

I would love to hear your thoughts on how to integrate dataview queryable pictures into my vaults.

Things I have tried

I could not find anything on the forum, Also, giving a excalidraw a fileclass I could not add the missing fields into frontmatter and had to do that manually

There has been a little talk about the Binary File Manager and Redirect plugins related to something similar, so you might look into those plugins. Sadly, at least the first hasn’t been maintained in a few years so not sure how well it works with todays version of Obsidian.

So it could be that your option 1 is just as good, or possibly better, for your use case.

1 Like