Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Bases Image Position

Lucas OstmannLucas Ostmann155 downloads

Control image positioning in Bases Card Views via frontmatter properties.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

English | Deutsch

Bases Image Position

Control image positioning in Obsidian Bases Card Views via frontmatter properties.


✨ Features

By default, cover images in Bases card views are centered. This plugin lets you adjust the position per note — useful when the subject of an image is off-center and gets cropped out.

🖼️ Position Presets

Quickly set the focal point of cover images using simple preset values — no calculations required.

Preset Description
center Center (default)
top Top center
bottom Bottom center
left Left center
right Right center
top left Top left corner
top right Top right corner
bottom left Bottom left corner
bottom right Bottom right corner

🎯 Precise Offsets

For fine-grained control, position images using exact offset values:

---
image-offset-x: 30%
image-offset-y: 70%
---

Supported units: %, px, em, rem, vh, vw. Plain numbers are treated as pixels (30 → 30px).

Note: Offset properties take priority over image-position presets. If both are set, offsets win.

⚙️ Configurable Property Keys

Rename the frontmatter properties to fit your workflow — fully adjustable in plugin settings without touching your notes.


🧠 How It Works

The plugin uses a MutationObserver to watch for Bases card elements in the DOM. When a card appears:

  1. Resolve – The note file is identified via multiple fallback methods
  2. Read – Frontmatter is pulled from Obsidian's metadata cache
  3. Apply – A background-position style is set on the card's cover element

File Path Resolution

Cards are resolved to vault files using these fallbacks in order:

1. data-path attribute     →  Direct attribute on card element
2. file.path property      →  Displayed property within the card
3. Internal link href      →  a.internal-link element
4. data-href attribute     →  Fallback link attribute
5. Title matching          →  Match against filenames or frontmatter titles

📑 Usage

Preset Positions

---
image-position: top
---

Precise Offsets

---
image-offset-x: 30%
image-offset-y: 70%
---

Both properties can be used independently or combined.


⚙️ Configuration

Open Settings → Community Plugins → Bases Image Position:

Setting Description Default
Image position property Frontmatter key for preset positions image-position
Image offset X property Frontmatter key for horizontal offset image-offset-x
Image offset Y property Frontmatter key for vertical offset image-offset-y
Debug mode Enable console logging for troubleshooting false

📦 Installation

From Obsidian Community Plugins (Recommended)

  1. Open Settings → Community Plugins
  2. Click Browse and search for "Bases Image Position"
  3. Click Install, then Enable

Manual Installation

  1. Download the latest release from the GitHub releases page
  2. Create folder: <vault>/.obsidian/plugins/bases-image-position/
  3. Copy manifest.json and main.js into this folder
  4. Reload Obsidian and enable the plugin under Settings → Community Plugins

📋 Requirements

  • Obsidian 1.9.10 or later (Bases was introduced in this version)

🛠 Development

Setup

git clone https://github.com/LucEast/obsidian-bases-image-position.git
cd obsidian-bases-image-position
npm install

Build

npm run dev      # Watch mode – auto-rebuild on changes
npm run build    # Production build with type checking

Architecture

See CLAUDE.md for development guidelines and architecture overview.


🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes using Conventional Commits (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

💡 Support

  • 🐛 Report a bug
  • 🎨 Share design feedback
  • 💬 Start a discussion

📝 License

MIT – Free to use and modify.

77%
HealthGood
ReviewSatisfactory
About
Control image positioning in Bases card views via note frontmatter to keep subjects from being cropped out. Set quick presets (center, edges, corners) or enter precise offsets with common CSS units, and rename the frontmatter keys in settings to match your workflow.
BasesImagesProperties
Details
Current version
1.0.2
Last updated
4 months ago
Created
4 months ago
Updates
3 releases
Downloads
155
Compatible with
Obsidian 1.9.10+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
GitHub Sponsors
Author
Lucas OstmannLucas Ostmannluceast
github.com/LucEast
GitHubluceast
  1. Community
  2. Plugins
  3. Bases
  4. Bases Image Position

Related plugins

Pretty Properties

Makes note properties look more fun: adds side image, banners, list property colors and allows to hide specific properties.

Bases CMS

Manage your notes in bases like a content management system.

Featured Image

Automatically set a featured image property in your notes based on the first image.

Image Manager

Insert, rename, and sort images within your notes.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

TaskNotes

Note-based task management with calendar, pomodoro and time-tracking integration.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Image Converter

Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align, drag-resize, rename with variables, and batch process images: WEBP, JPG, PNG, HEIC, TIF

Image Context Menus

Image context menus (mostly on right click): Copy to clipboard, Open in default app, Show in system explorer, Reveal file in navigation, Open in new tab.