This plugin watches for changes to files in an Obsidian vault and forces a refresh for images that have been modified on disk. Without this plugin, changes to images that are edited outside of Obsidian do not show up until the tab is closed and re-opened, or some kind of force-refresh is performed.
The plugin watches for changes to files using the vault API. Once a change is detected in an image file, the plugin queries the document for any img
tags associated with the image and increments the numerical query parameter appended to all images by obsidian. This forces a refresh of the image.
This plugin will be submitted to the official list, and thus hopefully will be available for install from there shortly.
For manual installation, create a folder in {your_vault_folder}/.obsidian/plugins
, add the main.js
and manifest.json
files from a release to the folder, and enable the plugin in Obsidian preferences.
The settings includes a list of file extensions to watch for changes. Changing these allows you to update image types with certain extensions, but not others.