Obsidian-Anki-Sync icon indicating copy to clipboard operation
Obsidian-Anki-Sync copied to clipboard

Trouble with pasted / locally stored images

Open AUMmason opened this issue 2 years ago • 4 comments

When adding pasted images or dragging images into my flashcards in obsidian they do not get rendered correctly in Anki?

I use this structure for my flashcards on a per file basis:

---
Deck: DeckName
---
<!-- basicblock-start-->
Question
::
Text + ![[Pasted Graphic]]
<!-- basicblock-end -->

When displaying the file in Anki it looks like this:

image

Not sure why this happens but I cannot get it to work unfortunately. Hope this issue can be solved 👍 Nice plugin btw!

AUMmason avatar Mar 27 '22 01:03 AUMmason

Hi @AUMmason, I faced the same issue. As an alternative I also tried to use <img src="..." /> but '<' and '>' were encoded to &lt; and &gt; The solution for me was to upload the files to a hosting service and use the resulting URL as demonstrated here

mzietlow avatar Jul 12 '22 19:07 mzietlow

I have the same issues, images are not shown/rendered in Anki:

<!-- basicblock-start oid="ObsJ8bJXzt4rc7xA6VIOoS7Y" -->
Overview: Gradient Boosted Decision Trees (GBDT)::
- Test
- ![[../../../assets/Screenshot 2022-05-27 at 11.31.47.png]]
- ![](../../../assets/Screenshot%202022-05-27%20at%2011.31.47.png)
<!-- basicblock-end -->

busera avatar Jul 22 '22 14:07 busera

Hi @AUMmason, I faced the same issue. As an alternative I also tried to use <img src="..." /> but '<' and '>' were encoded to &lt; and &gt; The solution for me was to upload the files to a hosting service and use the resulting URL as demonstrated here

Hello, can you let met know which hoisting service do you use ? I've been trying with imgur but images are not showing.

Thanks

Davidb-2107 avatar Sep 20 '22 09:09 Davidb-2107

Hi @AUMmason, I faced the same issue. As an alternative I also tried to use <img src="..." /> but '<' and '>' were encoded to &lt; and &gt; The solution for me was to upload the files to a hosting service and use the resulting URL as demonstrated here

Hello, can you let met know which hoisting service do you use ? I've been trying with imgur but images are not showing.

Thanks

Did you try ![](https://i.imgur.com/bzKfi0z.png)? As a side note, I migrated to Pseudonium's Obsidian_to_Anki and am a less troubled person now (its also faster due to checking file-hashes)

mzietlow avatar Sep 20 '22 18:09 mzietlow