Dong Yang51 downloadsAdds quick image alignment controls to image context menus and commands.
Image Alignment adds quick alignment controls for images in Markdown notes. It works by editing the image embed text directly, so your notes stay portable and readable without the plugin.
|300 when changing alignment.Right-click an image in Live Preview and choose one of:
Align image leftAlign image centerAlign image rightYou can also run these commands from the command palette:
Image Alignment: Set current image left alignedImage Alignment: Set current image centeredImage Alignment: 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 Image Alignment.
The plugin stores alignment as an image alt marker:
![[image.png|left]]
![[image.png|center|300]]
![[image.png|right|500x300]]

If an image already has a size marker, the alignment marker is inserted before the size marker so Obsidian can still recognize the size.
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.Image Alignment 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 Image Alignment.
For manual installation, copy these files into .obsidian/plugins/image-alignment/:
manifest.jsonmain.jsstyles.cssThen enable Image Alignment from Settings -> Community plugins.
If you find a bug, include:
pnpm install
pnpm run build