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

1.6.5 update -> no pictures ;( #150

Open
xverbatim1971 opened this issue Oct 21, 2022 · 9 comments
Open

1.6.5 update -> no pictures ;( #150

xverbatim1971 opened this issue Oct 21, 2022 · 9 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@xverbatim1971
Copy link

xverbatim1971 commented Oct 21, 2022

Hi,

despite the update i have no pictures in anki.
my links of the images are in this format,

![](../../Anhänge/th-1944952852.jpg)
don't know if it helps anything?

Obsidian Version 1.0 - Windows 10
many greetings
Thomas

Unbenannt

in Anki ->

Unbenannt

@xverbatim1971 xverbatim1971 added the bug Something isn't working label Oct 21, 2022
@github-actions
Copy link

Thank you for taking the time to report the issue and help me to make the project better! 🙂

@bytewife
Copy link
Contributor

Hey @xverbatim1971

Using the setup in your pictures I am able to see embedded images in my flashcards. Given that the fix update just happened, have you updated the plugin? If so we can continue with debugging

@xverbatim1971
Copy link
Author

Hi,

yes, i have everything up to date.
i use the free version of obsidian

obsidian version

i created another deck with an image
frage obsidian

the problem remains, no image is visible in anki :(
frage

@xverbatim1971
Copy link
Author

xverbatim1971 commented Oct 22, 2022

I was able to isolate the problem.
so the image is not displayed when i have the attachments in another folder.
If I have the images in the vault main folder, it works, then anki shows the images.
lösung1

doesn´t work

gehtnicht

@glitchlover
Copy link

@xverbatim1971 for now please add a space after yaml. I am having the same problem. We will resolve this issue as soon as possible

@wawa-dan
Copy link

Hello,
@glitchlover what do you mean by adding a space after yaml? don't see any reference to yaml in the issue.

@xverbatim1971, on which OS do you work ? can you please both in Anki and Obsidian show the source of the image link (in anki you should have a button to see the html).
Another question, how do you add the image in Obsidian ? when I paste an image from the clipboard, it add the media in the configured folder, but does not need any slash in the path. Looks obsidian search in the configure path and so do not need any relative path. Or did you have manually do the link with relative path ?

Looks like on anki side, all media are put in the same folder, and it didn't like that we send it slash in the file name

@xverbatim1971
Copy link
Author

hi,
thanks for the feedback.
I work with windows 10 - 64 bit.

sorry at the moment I do not want to touch my anki collection ... i am now completely away from the anki plugin because it was too vulnerable. i hope it will soon be stable and not so vulnerable :-)

i took relative paths for the images and set them under settings in obsidian.
if i take absolute paths here, no pictures are shown to me when i work with the notes and the software typora. there i don't see any pictures otherwise - so far it only worked like this.

thanks for the work, many greetings
thomas

Translated with www.DeepL.com/Translator (free version)

@houcheng
Copy link

houcheng commented Jan 2, 2023

Hi all, I've do some tests:

  • markdown link in images folder: not working
  • markdown link in same folder: not working
  • wiki link in images folder: not working
  • wiki link in same folder: working

@LucaMertens
Copy link

LucaMertens commented Feb 2, 2023

To fix the issue with relative image links that point to a subdirectory, it could be sufficient to modify the markdownImageLinks regex to only extract the file name of the path:

from !\[\]\((.*\.(?:png|jpg|jpeg|gif|bmp|svg|tiff)).*?\)
to !\[\]\((?:.*\/)?(.*\.(?:png|jpg|jpeg|gif|bmp|svg|tiff)).*?\)
https://regex101.com/r/cG6of6/1

Apparently, all Anki images are put into the same folder, so the files have to be referenced directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

7 participants