hikosalaidarkcommit120 downloadsAutomatically updates markdown image links when image files are renamed or moved in the vault.
Image Link Updater is a free, open-source Obsidian plugin (MIT, desktop) that automatically rewrites broken image links vault-wide whenever you rename, move, or reorganize image files — so your notes always display correctly without any manual link-fixing.
Stop losing images when you reorganise your vault. It also intercepts clipboard paste events to save images as standard Markdown links instead of Obsidian's default wiki-link format, and adds a right-click Cut & Paste command that moves files and updates every reference in one step.
Platform: Desktop only (Windows, macOS, Linux) | License: MIT | Version: 1.3.19 | Requires: Obsidian ≥ 1.5.7
Obsidian does not update image links by default when you rename or move image files. As soon as you reorganize your vault — moving screenshots into subfolders, renaming files for clarity, or restructuring attachment directories — every standard Markdown image link silently breaks, leaving blank images in your notes.
Image Link Updater fixes this automatically:
| Trigger | What breaks without the plugin | What Image Link Updater does |
|---|---|---|
| Rename image in File Explorer | Old link becomes broken | Rewrites to the new name vault-wide |
| Move image to a subfolder | Path changes, link points nowhere | Updates to new vault-root path automatically |
| Move image outside Obsidian (OS-level) | Obsidian never sees the event | Detects delete+create pair and fixes by filename |
| Paste image from clipboard | Default inserts wiki-link format | Saves file and inserts standard Markdown link instead |
| Cut & paste multiple files | Links break; must fix manually | Batch-moves files and updates all references in one step |
When you rename or move an image in Obsidian's File Explorer, the plugin listens for vault events and rewrites every affected Markdown image link and wiki-image embed across all your notes to reflect the new path. Both raw filenames and URI-encoded filenames (e.g. My%20image.png) are matched and updated.
When you paste an image from the clipboard, the plugin:
This keeps your notes portable — standard Markdown image links render correctly in GitHub, MkDocs, Hugo, and any other Markdown renderer, unlike Obsidian's default wiki-link format.
Move files efficiently with automatic link updates using the right-click context menu:
Single file:
Multiple files:
Name conflicts are handled automatically (adds a numeric suffix, e.g. image 1.png). Failed moves are retained in the cut buffer so you can retry without re-selecting.
If you move image files using your OS file manager (Finder, Explorer, terminal) while Obsidian is open, Obsidian receives a delete+create event pair. Image Link Updater catches this and repairs affected links by filename — provided the filename itself did not change.
Supported image formats: PNG, JPG/JPEG, GIF, BMP, SVG, WEBP.
Several plugins tackle overlapping problems. Here is an honest summary to help you pick the right tool.
| Feature | Image Link Updater | Consistent Attachments and Links | Paste Image Rename |
|---|---|---|---|
| Auto-update links on rename/move | ✅ Real-time, automatic | ✅ Via manual command | ❌ |
| Clipboard paste → Markdown link | ✅ | ❌ | ✅ (with rename dialog) |
| Cut & paste with link updates | ✅ | ❌ | ❌ |
| OS-level move fallback (delete+create) | ✅ | ❌ | ❌ |
| Reorganize entire vault attachment structure | ❌ | ✅ | ❌ |
| Rename image at paste time | ❌ | ❌ | ✅ |
| Mobile support | ❌ Desktop only | ✅ | ✅ |
| License | MIT (free) | MIT (free) | MIT (free) |
Choose Image Link Updater if: you want broken-link prevention to happen automatically in the background — no commands to run, no batch operations. Just install, enable, and keep working.
Choose Consistent Attachments and Links if: you need to migrate an entire existing vault from wiki-links to relative Markdown links, or if you want attachments co-located with notes (note-folder pattern).
Use both together: Image Link Updater handles real-time link repair while you work; Consistent Attachments and Links can audit and batch-fix historical inconsistencies.
manifest.json and main.js from the latest GitHub release<your vault>/.obsidian/plugins/image-link-updater/image-link-updater/
├─ manifest.json
└─ main.js
Why are my image links still broken after I move a file?
Image Link Updater only catches moves that happen through Obsidian's File Explorer or via the plugin's Cut & Paste menu. If you moved the file using your OS file manager while Obsidian was closed, the plugin cannot detect the original path. For moves made outside Obsidian while it is open, the fallback delete+create detection will still repair links by filename — provided the filename itself did not change.
Does this work on mobile (iOS / Android)?
No. Image Link Updater is desktop only (Windows, macOS, Linux). Mobile support is not currently planned.
Will it overwrite or corrupt my notes?
The plugin rewrites only the image path portion of Markdown image links and wiki-image embeds. It does not touch note content, frontmatter, or non-image links. It is safe to use alongside other plugins.
My pasted images are still inserting as wiki-links — what's wrong?
Make sure the plugin is enabled in Settings → Community plugins. If it was just installed, try disabling and re-enabling it. The clipboard paste interception only works in Editing mode (not Reading mode).
Does it handle filenames with spaces?
Yes. The plugin matches both raw filenames (My image.png) and URI-encoded filenames (My%20image.png). It normalises to URI-encoded format in Markdown links, and leaves wiki-embed paths with spaces un-encoded (matching Obsidian's own convention).
Is it compatible with Consistent Attachments and Links?
Yes. The two plugins complement each other. See the comparison table above.
When you move or rename image files, the plugin:
rename and create eventsMetadataCache.resolvedLinks and unresolvedLinks) to identify only the notes that actually reference the affected image — no vault-wide file scanWhen you paste an image:
%28/%29 to maintain valid Markdown)When you cut and paste files:
Open Settings → Image Link Updater to access plugin options:
Smart attachment folder (enabled by default) — When on, clipboard-pasted images are saved to the first matching subfolder in the priority list that already exists as a sibling of the active note's folder. For example, if you are editing notes/my-note.md and a folder notes/assets/ exists, the image is saved there. If no matching sibling folder is found, the image is saved into the note's own folder. When disabled, Obsidian's global attachment folder setting is used instead.
Smart folder names — Comma-separated, priority-ordered list of sibling folder names to check (default: assets, images). The first existing match wins. Matching is case-sensitive. You can customise this to any folder names your vault uses (e.g. attachments, media). Only applies when Smart attachment folder is on.
Debug logging — Enable to log detailed plugin activity to the developer console (Ctrl+Shift+I / Cmd+Option+I). Useful for troubleshooting. Off by default.
When Smart attachment folder is disabled, the plugin respects your existing Obsidian settings:
./attachments.Links not updating after rename or move?
[ImageLinkUpdater] messages — enable Debug logging in plugin settings first.png, jpg, jpeg, gif, bmp, svg, webp.Cut option not appearing?
Paste not working?
Pasted images inserting as wiki-links?
| Field | Value |
|---|---|
| Plugin ID | image-link-updater |
| Version | 1.3.19 |
| Author | Andy Lai |
| License | MIT (free, open-source) |
| Platform | Desktop only (Windows, macOS, Linux) |
| Minimum Obsidian | 1.5.7 |
| Community listing | https://obsidian.md/plugins?id=image-link-updater |
Image Link Updater is released under the MIT License.
# 1. Clone the repo
git clone <repository-url>
cd obsidian-image-link-updater
# 2. Install dependencies
npm install
# 3. Build
npm run build
Copy manifest.json and main.js into your vault's .obsidian/plugins/image-link-updater/ folder.