Anki HTML Export Plugin

Hello,

Based on my previous HTML Export script, I continued my work and brought the functionality into a GUI-based Anki Add-on.

The plugin uses Anki Connect for data handling.
I might deploy it to Anki Web in the future. Happy to receive any feedback!

https://github.com/GitCrush/anki-html-exporter-plugin

Anki 25.06b4 (b2dc5a02) (ao)
Python 3.13.5 Qt 6.8.1 PyQt 6.8.0
Platform: Windows-11-10.0.26100-SP0

When loading Anki HTML Exporter:
Traceback (most recent call last):
File “C:\Users\salma\AppData\Local\AnkiProgramFiles.venv\Lib\site-packages\aqt\addons.py”, line 250, in loadAddons
import(addon.dir_name)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File “C:\Users\salma\AppData\Roaming\Anki2\addons21\265861717_init_.py”, line 5, in
from .exporter import export_to_html_gui
File “C:\Users\salma\AppData\Roaming\Anki2\addons21\265861717\exporter.py”, line 4, in
import imghdr
ModuleNotFoundError: No module named ‘imghdr’

Appreciate your feedback!
I removed imghrd since it is a non-standard dependency and updated the plugin.
Now it should work for you too.

Hi, thanks for the Addon. I have two issues:

  • I use JavaScript to size the font according to how many characters are in the field. E.g., for Chinese, if a card contains only 1 character, I want it displayed big, as in, half the page big. If the card is to memorize a 20-character proverb, obviously I use JS to size the font down. This does not get reflected in the export, unfortunately.
  • Maybe it’s due to my fundamental misunderstanding of the interplay of cards, notes, front/back sides, etc. However, here goes: after using your add-on to export, I only see what I consider the backside of my cards, not the front side. But I want both, just as the Anki program preview button gives me. My setup is that I have one deck, one note type, one card type, and in this card type I use Anki card browser’s “Front template” and “Back template” section to add fields. Maybe that’s a mistake. But what I naively expect is to get both front and back exported, instead I only get the backside.

Hello,

Thank you for your feedback! I just uploaded a new release of the addon with improved functionality. It should work now. Just give it a try!

I performed a major updated with improved rendering and better functionality. Hope you find it useful!

anki-html-exporter

https://ankiweb.net/shared/info/265861717