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

Possible to output SVG in image file in the future? #11

Open
Duckerl opened this issue Feb 16, 2021 · 1 comment
Open

Possible to output SVG in image file in the future? #11

Duckerl opened this issue Feb 16, 2021 · 1 comment

Comments

@Duckerl
Copy link

Duckerl commented Feb 16, 2021

Greetings!
I didn´t think I was as much as a visual learner until I tried your Addon (before I used Migaku/MIA Japanese)...
Thank you so much! It really shines in what it does. I really love it!
Currently I´m trying to switch from Anki to Supermemo and whilest converting my Anki collection to SM, sadly the SVG Data is always lost in the process..
Is it possible for you to add a "save pitch pattern as image file" feature? However I think you addon is already perfect.
Thank you!

@Duckerl Duckerl changed the title Possible to output SVG in imagefile in the future? Possible to output SVG in image file in the future? Feb 16, 2021
@IllDepence
Copy link
Owner

Hi,
glad to hear you like the add-on. That's in interesting edge case you have there.

Unfortunately I've never worked with image files in Anki from a add-on's point of view, so I woudn't know how to quickly add such an option. (Using SVGs instead of pixel bitmaps was a delibarate choice to keep the data footprint small and ensure good looking illustrations no matter how much you zoom in.)

If someone with coding experience were to come across this, just as an idea, one option might be to solve this by iterating through all cards, generating bitmaps (e.g. PNG) from the SVGs and then replacing the SVGs with <img> elements using data URLs. (Though I'm not sure how the Anki to Supermemo converter you use handles images and if that would work.)

So ... I don't see me finding the time to get familiar with the necessary Anki features for this any time soon, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants