Dong Yang90 downloadsImproves Live Preview image editing with Markdown reveal, resize, and alignment tools.
Better Live Preview Image improves image editing in Obsidian Live Preview. It works by editing image Markdown directly, so notes stay portable and readable without the plugin.
Better Live Preview Image currently has three features:
Right-click an image in Live Preview or Reading view and choose one of:
Align image leftAlign image centerAlign image rightYou can also run these commands from the command palette:
Better Live Preview Image: Set current image left alignedBetter Live Preview Image: Set current image centeredBetter Live Preview Image: Set current image right alignedDefault hotkeys:
Ctrl/Cmd + Alt + Shift + Left: align the selected or current image leftCtrl/Cmd + Alt + Shift + Down: align the selected or current image centerCtrl/Cmd + Alt + Shift + Right: align the selected or current image rightTo change the hotkeys, use Obsidian's built-in Settings -> Hotkeys page and search for Better Live Preview Image.
Enable Click image to edit Markdown in Live Preview in the plugin settings. When enabled:
Enable Apply image size markers inside callouts in the plugin settings. When enabled, images inside callouts use Obsidian width and height markers in Live Preview and Reading view:
> [!info] Example
> ![[image.png|240]]
> ![[image.png|240x160]]
This setting is enabled by default. Turning it off removes only the plugin-applied inline sizing from rendered callout images; it does not modify your Markdown.
Alignment is stored as an image alt marker:
![[image.png|left]]
![[image.png|center|300]]
![[image.png|right|500x300]]

Resize updates standard Obsidian image size markers such as |300 and preserves existing height tokens such as |500x300.
When an image matches the default alignment configured in the plugin settings, the explicit alignment marker is removed. The plugin's CSS then applies the default alignment while the plugin is enabled.
left, center, or right marker.Better Live Preview Image runs entirely inside your vault. It does not use network access, telemetry, ads, accounts, or external services.
After the plugin is published, install it from Settings -> Community plugins -> Browse and search for Better Live Preview Image.
For manual installation, copy these files into .obsidian/plugins/better-live-preview-image/:
manifest.jsonmain.jsstyles.cssThen enable Better Live Preview Image from Settings -> Community plugins.
If you find a bug, include:
pnpm install
pnpm run build