Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emblemed preview image support #376

Open
dxcore35 opened this issue Aug 2, 2021 · 5 comments
Open

Emblemed preview image support #376

dxcore35 opened this issue Aug 2, 2021 · 5 comments
Assignees

Comments

@dxcore35
Copy link

@dxcore35 dxcore35 commented Aug 2, 2021

Support displaying of the emblemed image inside query results. The image size should be taken from image size definition after image file name and "|". Otherwise some small default image should be taken, so image is not display ridiculously big. If the image is in metadata without ! the image should be displayed as link and not as preview.

INPUT (metadata)


image: ![[Image.jpg|20]]
etc.....


table IMG, abr, pali, english
where class = "element"

OUTPUT (desired)

Screenshot 2021-08-02 at 08 27 36

OUTPUT (real)

![[Image.jpg]] - will show text image name as link (need to hover to show picture)
![[Image.jpg#extraCSS|20]] - will show text "20" as link (need to hover to show picture)

EXTRA (formatting support)

![[Image.jpg|20]]
![[Image.jpg#extraCSS|20]]

@blacksmithgu
Copy link
Owner

@blacksmithgu blacksmithgu commented Aug 4, 2021

Out of curiosity, does this work at all currently? Or does it just show some error in that column?

@dxcore35
Copy link
Author

@dxcore35 dxcore35 commented Aug 4, 2021

  • ![[Image.jpg]] - will show text image name as link (need to hover to show picture)
  • ![[Image.jpg#extraCSS|20]] - will show text "20" as link (need to hover to show picture)

@dxcore35
Copy link
Author

@dxcore35 dxcore35 commented Aug 4, 2021

This syntax works:

  • but it is not standard obsidian image format
  • the images are external (online)
  • internal images are not working (I tested)

https://forum.obsidian.md/t/dataview-plugin-snippet-showcase/13673/356?u=den

@blacksmithgu
Copy link
Owner

@blacksmithgu blacksmithgu commented Aug 4, 2021

Okay, my guess is it is not properly setting the CSS for the embed links (something similar happens for non-existent links).

@dxcore35
Copy link
Author

@dxcore35 dxcore35 commented Aug 5, 2021

Not sure what are you referring to. But both naming conventions are working in Obsidian notes. They are "ignored" / not recognized only in Dataview code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants