16 0
Sign in to rate

Localize Media

<10kB. Updated 2018-11-26.
The author has shared 13 other item(s).

Description

To use the add-on, select your cards in the Browse screen, and use the 'Localize Images' option in the Notes menu. The add-on will scan your cards for any remote media links and inlined images, eg: <img src="http://example.com/image.jpg"> <img src="data:image/jpeg;base64, ....."> [sound:http://example.com/file.mp3] If any are detected, the remote links will be downloaded, and the references converted into local references like [sound:file.mp3] instead. If you encounter an error while downloading, you can repeat the operation and previously localized notes will not need to be localized again. Updated 26 Nov 2018 to support downloading audio files as well. Updated 20 Aug 2018 to support converting inlined images into files in the media folder. Updated 23 Apr 2018 to fix the action triggering on other browser commands.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1293255374

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools->Add-ons menu item, then click on Get Add-ons and paste in the code.

All Anki 2.1.x Add-Ons

Reviews

on 1673953564
This works really well, but in the future could you make an option such that it automatically localizes images/audio ? Then I don't have to select a lot of notes every time to localize them.
on 1671724830
It's so convenient. Thank you very much.
on 1669137310
thank you , you saved me
on 1658628360
life saver.
on 1652968551
It works, however if you place your text cursor in a field and press localize media, it gets stuck on "succesfully processed x/x notes".
on 1649507886
知乎来的,https://www.zhihu.com/question/392160610
我遇到的问题就是复制粘贴了一些图片用来制卡,但是没办法同步到云端。其他设备上都看不到这些图片,通过Tools-check media发现missing file和unused file基本是一样的文件。接着下载这个插件,在BROWSE里面选中出现问题的卡片,然后选NOTES-localize media,似乎成功修复了这个问题。希望能帮到其他同胞。
on 1629513903
Just what I want. And works. thx
on 1624097964
Great!
on 1607226701
1
on 1591292548
very good!
on 1571863089
Ok
on 1568473062
thank you!!!!! this fixed it :)
on 1559817994
Useful.
on 1553330251
Not sure it's working for gifs
on 1543235395
thanks 😊
on 1539363061
The source code for this add-on is also available at https://github.com/dae/ankiplugins/blob/master/localizemedia/__init__.py

So it seems to be an add-on from the anki-developer