flashcards-obsidian icon indicating copy to clipboard operation
flashcards-obsidian copied to clipboard

Plugin fails to import .webp file types (i.e. assets) to Anki

Open edmund-leibert opened this issue 1 year ago ā€¢ 1 comments

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.
Note that my Anki2\Edmund Leibert III\collection.media folder is empty.
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.
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
Likewise, the folder Anki2\Edmund Leibert III\collection.media folder is still empty.

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! šŸ˜„

edmund-leibert avatar Mar 22 '23 20:03 edmund-leibert