npm install npm run dev 或者 npm run build 将 manifest.json和styles.css 拷到build目录下 将build目录拷到obsidian插件目录下。在obsidian插件页面可以打开插件目录
This plugin is still young, backups are a good idea.
Obsidian Local Images is a plugin for Obsidian desktop version.
The plugin finds all links to external images in your notes, downloads and saves images locally and finally adjusts the link in your note to point to the local image files.
For example, we initially have a markup in the note like this:
![](https://picsum.photos/200/300.jpg)
Local Images plugin will download image 300.jpg, save in media subdirectory of the vault, than change the markup so it refer to locally stored image:
![](media/300.jpg)
It is useful when you copy paste parts from web-pages, and want to keep images in your vault. Because external links can be moved or expired in future.
Use it with commands:
Download images locally -- your active page will be processed.
or
Download images locally for all your notes -- will be processed all the pages in your vault, that corresponds to Include parameter in the plugin's settings.
Also you can turn on in plugin's settings processing the active page when external links pasted into the page.
The plugin was not tested with mobile version, probably it can work with it too.
This plugin was developed from niekcandaele's code base. Key principles for downloading, saving were given there, and some texts too. Even the plugin's name is original.
# Start the bundler in watch mode
npm run dev
# It's useful to set a symlink so you don't have to copy files over constantly
ln -s /home/user/code/obsidian-local-images /home/user/notes/dev/.obsidian/plugins/local-images