Coldhan258171 downloadsLocal Background Image Server – Map Local Folders to HTTP Services to Fix Obsidian’s Limitation of Only Accepting Online URLs for Wallpapers
专为 Obsidian 桌面端开发的本地背景图片服务器插件。解决 Obsidian 壁纸功能仅支持线上 URL、无法使用本地图片的痛点。全程本地运行、零网络上传、100% 保护隐私。通过内置的轻量 HTTP 服务器,将本地文件夹映射为 Web 服务,生成可用的 http:// 格式 URL,直接粘贴到 Obsidian 壁纸设置中即可生效。
A desktop-only Obsidian plugin that solves the limitation of Obsidian's wallpaper feature (online URLs only) by running a lightweight local HTTP server. It maps a local folder to a web service, generating http:// URLs that work seamlessly with Obsidian's wallpaper settings. Fully local, zero upload, 100% private.
http 模块,开箱即用 / Uses only Node.js built-in http module, ready out of the box中文
localhost:8989),仅在本地回环地址运行,不连接任何外部网络服务。.bg/ 文件夹,但支持通过设置配置为绝对路径(如 D:/Images),届时将能够读取 Obsidian vault 外部的文件。English
localhost:8989) on the loopback address only. It does not connect to any external network services..bg/ inside your vault. However, it also supports absolute paths (e.g. D:/Images) in settings, which allows reading files outside the Obsidian vault.在 Obsidian 设置 → 社区插件 → 浏览中搜索 "Local Background Image Server"。 Search "Local Background Image Server" in Obsidian Settings → Community Plugins → Browse.
BRAT: Add a beta plugin for testing.obsidian/plugins/local-bg-image-server/ / Extract to that path在 Obsidian 设置 → 插件选项 → Local Background Image Server 中: In Obsidian Settings → Plugin Options → Local Background Image Server:
| 配置项 / Setting | 说明 / Description | 默认值 / Default |
|---|---|---|
| 服务器端口 / Server Port | HTTP 服务器监听端口(1024–65535) | 8989 |
| 访问主机名 / Hostname | localhost 或 127.0.0.1 |
localhost |
| 图床文件夹路径 / Image Folder Path | 相对路径或绝对路径 / Relative or absolute | .bg/ |
| 每页图片数 / Images Per Page | 预览面板每页显示数量 | 30 |
修改端口、主机名或图床路径后,点击 重启服务器 按钮使配置生效。 After changing port, hostname or folder path, click Restart Server to apply.
中文
.bg/ 文件夹(或其他自定义路径)English
.bg/ folder (or your custom path)图片文件名若包含空格或特殊字符,插件会自动进行 URL 编码。例如 my wallpaper.png 会生成为 http://localhost:8989/my%20wallpaper.png。
Filenames with spaces or special characters are automatically URL-encoded. For example, my wallpaper.png becomes http://localhost:8989/my%20wallpaper.png.
jpg · jpeg · png · gif · svg · webp · bmp · ico · tiff · tif
Obsidian 壁纸设置 / Obsidian Wallpaper Settings
↓
http://localhost:8989/xxx.png
↓
[本插件 HTTP 服务器 / This Plugin's HTTP Server]
↓
.bg/xxx.png (本地文件 / Local File)
中文 — Obsidian 壁纸功能要求使用线上 URL。本插件通过在本地启动一个轻量 HTTP 服务器,将本地文件夹"伪装"成线上图床,让 Obsidian 壁纸功能可以加载本地图片。
English — Obsidian's wallpaper feature requires online URLs. This plugin starts a lightweight local HTTP server to "disguise" a local folder as an online image host, enabling Obsidian to load local images as wallpapers.
MIT