yujia259 downloadsRender a group of images as one horizontal scrolling strip instead of a tall vertical stack, with upload, paste, drag to reorder and a full-screen viewer.
A group of images in Obsidian normally stacks straight down the page, so ten screenshots swallow ten screens of scrolling. This plugin renders a group as one horizontal strip of fixed height that you scroll sideways instead.
Run Insert image gallery from the command palette (or the ribbon icon). That drops a gallery block into the note. Select some image embeds first and they are wrapped into it:
```gallery
![[photo-1.png]]
![[photo-2.png]]
```
When an image is renamed or moved, the plugin rewrites the gallery lines itself.
Every gallery carries a small toolbar above the strip, always visible, with three ways to add images:
| Scroll | Trackpad swipe, mouse wheel (vertical wheel moves it sideways), or the ‹ › buttons |
| Enlarge | Click an image for a full-screen viewer; ← → to move, Escape to close |
| Reorder | Hover an image for ‹ › buttons, or drag it — on touch, press and hold first. The strip stays where it was and keeps the moved image in view |
| Copy | The copy button puts the image on the clipboard as a bitmap, ready to paste into anything |
| Show in Finder | The folder button opens the image's location in Finder or Explorer. Desktop only |
| Remove | The bin button on the image. This drops the line from the gallery — your image file is untouched |
A height: line overrides the global height for that one gallery:
```gallery
height: 180
![[photo-1.png]]
```
Wiki embeds,  links and plain image URLs all work. Anything the
plugin does not recognise is left in the block untouched.
Gallery height, gap between images, scroll arrows, scroll snapping and rounded corners.
Off by default. When on, images added through a gallery are saved as
Note name.png, then Note name-1.png and so on, instead of keeping the name
they came with. Rename plugins such as Paste image rename usually do this, but
they wait for a link in the note body, which gallery images do not have.
Obsidian does not index anything inside a code block, so on its own a gallery's
images do not count as links: a Bases file.embeds formula cannot see them, an
image's backlinks miss the note, and tools that count references before
deleting an image think it is unused.
Name a property under Gallery images property (off while empty) and every
note's gallery images are kept in it as a list of [[links]], which Obsidian
does index. It is updated automatically whenever a gallery changes: through its
buttons, by typing in the block, or when an image is renamed. Remove the last
gallery from a note and the property goes too. The note text is the source of
truth, so edits made to the property by hand are overwritten.
After turning it on, run Update the gallery property in all notes once to fill it in for galleries you already have.
To use a gallery image as a Bases card cover, fall back to the property when a
note has no ordinary image embed (here the property is called gallery):
formulas:
cover: if(file.embeds.filter(value.containsAny("png","jpg","jpeg","webp")).length > 0, file.embeds.filter(value.containsAny("png","jpg","jpeg","webp"))[0], note["gallery"][0])
MIT