I used Obsidian for heavy personal media management that makes aggregations for multiple types of media. I would set image properties for different media in different property names, such as “poster” for movies, “cover” for music albums, “icons” for software, and website. and in some cases, such as video games, can have both “poster” and “icon”.
I would like to set up multiple image properties in the same way as the sort feature in Bases, which can set and prioritize multiple attributes. So users can show all note images when aggregating notes with different image property names, and prioritize different image properties to show in different Base views for the note that has multiple image properties.
I think this could be achieved using a formula property and selecting that formula property as the Image property in the cards layout
…
You could potentially store the various keys in a array and then filter it by value, which could probably display the needed image using image() …
image([poster, cover, icons].filter(value)[0])
… this is completely untested so it could require some tweaking
…
Or using nested if() to check if one of the key is present and get the image …
if(
poster,
image(poster),
if(
cover,
image(cover),
if(... etc ...)
)
)
A small update:
If anyone just happened to use “file” and “image” as the property names in the notes, like me. and use the original formula above. It would clash with the function’s names. and adding “note.” into the formular in front of the property names, like “note.file” and “note.image” would solve the clash issue
I have a similar feature request so I’ll put it here.
If a card’s image property is an array of image URLs then the card displays a slideshow of the images contained in the array. It maybe diplays the first image with left and right arrows, allowing the user to scroll through the images.
Take a look at this CSS snippet:
i can’t seem to get this snippet to work as expected, despite following the README
the image stretches over the entire card like this instead of any formulas or properties being visible, and doesn’t ever swap when hovered
You could inquire on Discord about this.
oh, I didn’t know there was a Discord, thank you! could you please send me an invite link? I’m just seeing “No Text Channels” when I click the link ![]()
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

