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

Photo Slimmer

yujiayujia29 downloads

Convert oversized images in your vault to WebP in one pass, updating every link for you, including links written inside code blocks.

Add to Obsidian
Photo Slimmer screenshot
  • Overview
  • Scorecard
  • Updates1

Converts the oversized images already sitting in your vault to WebP, in one pass you start yourself, and moves every link over to the new file — including links written inside code blocks, which Obsidian's own link index does not see.

On a real 8,500-image vault it turned 681 MB of PNGs into 63 MB across five runs, with no broken link and no file left mislabelled.

How a Photo Slimmer run goes

What it does

Press the ribbon icon. You get a preview of exactly what is about to happen — how many images, how big, and what becomes of the originals — and nothing is touched until you confirm.

Each image is then converted in place:

  • The file keeps its name and changes extension: photo.png → photo.webp.
  • Every link that pointed at it is rewritten, including the ones in fenced code blocks.
  • The original goes to the system trash under its own name, so it is recoverable.
  • Anything that cannot be converted safely is left exactly as it was and listed at the end with the reason.

When the run finishes you get a report: how many, how much smaller, and — named, with a reason — every image that was skipped or could not be replaced.

Why you might want it over the alternatives

Most image plugins compress at paste time, which does nothing for the images already in your vault. This one is for the backlog: it finds every image over a size threshold, biggest first, and works down the list.

Two things it is careful about, both learned from live vaults:

Links inside code blocks. If you embed images from a ````gallery` block or similar, Obsidian's metadata cache does not know those links exist and will not update them when a file is renamed. Photo Slimmer parses the markdown itself, so those links move too.

Other plugins renaming your files. Plugins that rename new attachments (Paste image rename, for example) race anything that creates a file. Photo Slimmer creates no file in your vault at all — the image is rewritten in place, and the copy of the original is written outside the vault's file index, where nothing else can see or rename it.

Settings

Setting Default What it does
Size threshold 200 KB Images at or below this are never touched
Images per run 50 Stop after this many, biggest first. 0 does the whole vault
Longest edge 2560 px Larger images are scaled down. 0 keeps the original size
WebP quality 90 Higher keeps more detail and produces bigger files
Minimum saving 10% Leave an image alone unless converting saves at least this much
The original file System trash Or replace it, keeping no copy
Excluded folders — One path per line; these and their subfolders are never touched

A very tall image is scaled by its short edge instead, which never goes below 1080 px — capping the long edge alone would turn a long screenshot into an unreadable sliver.

Two things worth knowing before you run it

On an iCloud vault, the system trash still counts against your iCloud storage for 30 days. The space is not actually freed until then. The preview dialog says so too.

WebP is not readable everywhere. Obsidian renders it on every platform, but if you export notes to somewhere that predates WebP support, those images will not show.

What is left alone, and why

Every one of these is a normal outcome, reported by name:

  • the WebP came out no smaller than the original
  • the image could not be decoded (a file with the wrong extension, for example — a TIFF named .png)
  • a .webp of that name already exists
  • the note holding the link changed while the image was being converted

In the last case nothing is half-done: the image, its bytes and every note are put back the way they were before the failure.

Installation

Community plugins → Browse → search for Photo Slimmer.

To install manually, copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/photo-slimmer/.

Development

npm install
npm run build

src/compress.ts has no Obsidian import, so the compression core can be bundled and exercised against real photos in a browser before it ever goes near a vault.

License

MIT

HealthExcellent
ReviewPassed
About
Convert oversized images in your vault to WebP in-place and rewrite every link (including links inside fenced code blocks) while preserving filenames. Preview exact changes before running, move originals to the system trash for recovery, and get a named report of skipped or failed images.
ImagesLinks
Details
Current version
2.0.0
Last updated
Last week
Created
Last week
Updates
1 release
Downloads
29
Compatible with
Obsidian 1.1.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
yujiayujiarainajia716
GitHubrainajia716
  1. Community
  2. Plugins
  3. Images
  4. Photo Slimmer

Related plugins

Leaflet

Interactive maps inside your notes.

Auto Card Link

Automatically fetches metadata from a URL and makes it as a card-styled link.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Advanced URI

Control everything with URI.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Consistent Attachments and Links

Move note attachments and update links automatically.

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.