flashcards-obsidian
flashcards-obsidian copied to clipboard
Plugin fails to import .webp file types (i.e. assets) to Anki
Report
NOTE: Do you have the last version of the plugin? If not that's probably the problem
Yes, I currently have the latest version of flashcard-obsidian (v1.6.5)
Describe the bug
While the current version of this plugin can import assets of the file types (.png
, .jpeg
, etc.) it cannot import .webp
assets. For a better visualization, follow the āTo Reproduceā steps and see the attached screenshots.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
I expect that the .webp
file (i.e. asset) to be successfully imported to Anki as well as embedded in the card. Essentially, I wish the plugin to have the same behavior with the .webp
file type as it does with .jpeg
, .png
, etc. file types.
Screenshots
Initial state of Anki; there are no decks or cards.
![](https://user-images.githubusercontent.com/43337293/226973096-6e73dd21-4667-49f9-9d1e-6789f21b90b5.png)
Note that my Anki2\Edmund Leibert III\collection.media
folder is empty.
![](https://user-images.githubusercontent.com/43337293/227029200-28848ab2-6836-4bf8-8a66-0e494b1f6730.png)
The flashcard I am trying to generate into Anki. Notice that the asset (i.e. image) I am trying to upload is a .webp
file type.
![](https://user-images.githubusercontent.com/43337293/227028745-a137b3bd-b26d-4e71-9ce8-a8583b36dec6.png)
Cards are generated, but the .webp
file is not imported correctly and left undefined. Furthermore, the .webp
file is never successfully imported to the folder
![](https://user-images.githubusercontent.com/43337293/227033381-de7ab542-5e6e-4dcc-b43d-d00a76a75535.png)
Likewise, the folder Anki2\Edmund Leibert III\collection.media
folder is still empty.
![](https://user-images.githubusercontent.com/43337293/227029200-28848ab2-6836-4bf8-8a66-0e494b1f6730.png)
Markdown used
How should one visualize a simplified representation of the compiling process? #card-reverse
![[learncpp-com-compiling-min.webp|450]]
^Note that to reproduce this error, the key issue is to ensure that the file type is .webp
.
Additional context
- As youāre probably aware, I modified the ābug reportā template to better suit the needs of this report. Apologies for that but I feel this newer template is better suited to presenting the issue. If this is a problem, I am more than happy to use your template in the future.
- Lastly, I look forward to any insight, feedback, etc. You have truly made an amazing Obsidian plugin! š