saltyfireball99 downloadsDownload all remote images in the current note and save them locally to your vault's attachment folder, rewriting URLs to point to the local copies.
An Obsidian plugin that downloads all remote/external images in the current note and saves them locally to your vault's attachment folder. After downloading, every URL is rewritten to point to the local copy.
Works on both desktop and mobile.
attachments/games/re/game1/), HTML <img src="https://raw.githubusercontent.com/saltyfireball/obsidian-save-as-local-images/HEAD/url"> tags, and wiki embeds ![[url]]Ctrl/Cmd + P)If your vault's attachment folder is set to attachments and you run the command on a note at games/re/game1.md, the images will be saved to:
attachments/games/re/game1/
abc123def456.png
ghi789jkl012.jpg
...
| Pattern | Example |
|---|---|
| Markdown |  |
| HTML | <img src="https://example.com/img.png"> |
| Wiki embed | ![[https://example.com/img.png]] |
Supported file types: PNG, JPG/JPEG, GIF, BMP, SVG, WebP, ICO, TIFF, AVIF.
This plugin has been submitted for review to the Obsidian community plugin directory. Once approved, you will be able to install it directly from Settings > Community plugins > Browse by searching for "Save as Local Images".
You can install this plugin right now using the BRAT plugin:
Install BRAT from Settings > Community plugins > Browse (search for "BRAT" by TfTHacker)
Open the BRAT settings
Under the Beta plugins section, click Add beta plugin

In the overlay, enter this plugin's repository: https://github.com/saltyfireball/obsidian-save-as-local-images (or just saltyfireball/obsidian-save-as-local-images)

Leave the version set to latest

Click Add plugin
main.js and manifest.json into your vault's .obsidian/plugins/sfb-save-as-local-images/ directory