Organize and display photo albums directly in your Obsidian vault.
Go to Community plugins → Photo Album → Settings and set the Albums folder path. This is the folder relative to your vault root where all album subfolders will live. The default is Albums.
Inside your albums folder, create a subfolder with your photos. For example:
Albums/
trip-to-bali/
photo1.jpg
photo2.png
photo3.webp
family-portrait/
img001.jpg
img002.jpg
Supported image formats: .jpg, .jpeg, .png, .gif, .webp, .bmp
Use the command palette (Ctrl+P / Cmd+P):
Both commands open a searchable modal listing all album folders. Select one to insert the block.
After insertion, your note will contain a code block like this:
```photoalbum
title: "Trip to Bali"
folder: "trip-to-bali"
```
When the note is in reading mode, this block is rendered as a photo grid:
You can also edit the title and folder values manually in source mode.
| Setting | Description | Default |
|---|---|---|
| Albums folder path | Root folder containing album subfolders | Albums |
| Columns | Number of photos per row (1-12) | 5 |
| Thumbnail size (px) | Size of generated thumbnails (100-800) | 300 |
Changing the thumbnail size regenerates the cache on the next album view.
The plugin scans the configured albums folder for subdirectories containing image files. When an album is inserted or previewed, it generates WebP thumbnails at the configured size and caches them in the plugin's data directory. Thumbnails are regenerated only when the original file changes or the cache is invalidated.
Cached thumbnails are stored in the vault's .obsidian/plugins/photo-album/thumbnails folder. If needed, they can be deleted at any time and will be regenerated the next time the album is displayed.