Image Viewer

unlisted

by Fan4_Metal

Click an image to open a full-window viewer with a thumbnail gallery, arrow-key navigation and mouse-wheel zoom.

Updated 1mo ago
View on GitHub

Obsidian Image Viewer

English · Русский

Click an image in a note to open it in a full-window viewer that fills the whole Obsidian window.

Image Viewer

Features

  • Full-window viewing — the image is scaled automatically to fit the window.
  • Thumbnail gallery at the bottom — every image in the current note in a single horizontal row of uniform size. The active one is highlighted; click to switch.
  • Arrow-key navigation / — previous / next image.
  • Mouse-wheel zoom — zooms toward the cursor; you can also shrink below the fitted size.
  • Drag to pan when the image is zoomed in.
  • Double click — toggle between the default zoom and 2×.
  • Esc or a click on the dark backdrop closes the viewer. + / - / 0 zoom from the keyboard.

Settings

Available in Settings → Community plugins → Image Viewer:

OptionDescription
Show thumbnail galleryshow/hide the bottom thumbnail strip
Thumbnail heightthumbnail height (40–160 px); width follows the orientation
Thumbnail orientationthumbnail shape: landscape / portrait / square
Center thumbnail gallerycenter the gallery when it fits (otherwise left-aligned and scrollable)
Show navigation arrowsshow/hide the ‹ › arrows (arrow keys always work)
Show file nameshow the current file name in the top bar (centered)
Mouse wheelwheel mode: Zoom — wheel zooms, arrows navigate; Navigate — wheel navigates, Ctrl/Cmd+wheel zooms
Default zoomzoom on open: fit without upscaling (default), fit with upscaling, fill height, fill width, 100%
Keep zoom between imagespreserve zoom level and position when switching images
Loop navigationwrap around from the last image to the first and vice versa
Close on backdrop clickclose by clicking the dark backdrop (the close button is hidden when enabled)
Backdrop opacityhow dark the background is (0.5–1.0)
Minimum zoomlower zoom limit (< 1.0 lets you shrink below the default size)
Maximum zoomupper zoom limit (× the default size)
Zoom stepwheel sensitivity — how much one notch zooms

Settings are stored in the plugin's data.json and applied the next time the viewer opens.

Build

npm install
npm run build      # produces main.js
npm run deploy     # build + copy into dev_vault for testing

For development: npm run dev (watch build), then run ./deploy.ps1 manually.

Manual installation

Copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/image-viewer/ and enable the plugin in Obsidian's settings.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.