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

Image Darkmodifier

0qln0qln447 downloads

Turn your inline images into darkmode (...and more!).

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Obsidian Plugin.

Apply filters, such as darkmode effects (with transparency), to your markdown image links.

This is what it might look like:

No filter: image

With @darkmode filter: image

How to use this?

  1. Add the plugin

  2. Just add the filters to the alias part of your image link:


Normal embed:
`![[image.png|image-description]]`

Embed with darkmode: 
`![[image.png|image-description @darkmode]]`

Where darkmode is essentially just a shorthand for this:
`![[image.png|image-description @invert @transparent(threshold="rgb((13, 13, 13))", remove="below") @boost-lightness(amount=1.2)]]`

The filter are applied in order left to right.

Filter Syntax

will look like this for most cases:

@filter-name(boolean-param, int-param=42, float-param=-6.9, string-param="text-value")

For string values, the following characters have to be written in a special way:

  • " => ""
  • ( => ((
  • ) => ))

Backslashes are not allowed. (Due to how the image-alt is parsed by obsidian.)

Link support

All kind's of link notation are supported:

![[image.png | image-description @darkmode]]
![image-description @darkmode | 410](https://raw.githubusercontent.com/0qln/obsidian-image-darkmodifier/HEAD/image.png)
<img src="https://raw.githubusercontent.com/0qln/obsidian-image-darkmodifier/HEAD/image.png" alt="image-description @darkmode" style="height: 410px">

You can even use image links to remote images:

![image @invert](https://i.pinimg.com/736x/fb/74/eb/fb74ebfb80a42e0ae5a26b86d9f2fe47.jpg)

(Note that this requires a network request to fetch the image data.)

The following filters can be used:

Darkmode

Reccomended for use on images with white backgrounds (e.g. screenshots of diagrams in papers).

name: @darkmode params: none.

Default Behavior

By default, always applies dark mode adjustments: inverts the image, removes the background, and boosts the lightness by 1.2.

Essentially just a shorthand for: @invert @transparent(threshold="rgb((13, 13, 13))", remove="below") @boost-lightness(amount=1.2).

Theme Aware Mode

You can enable Theme Aware Mode in the plugin settings. When enabled, the @darkmode filter automatically adapts to Obsidian's current theme:

In Dark Theme:

  • Inverts colors
  • Removes dark backgrounds (below threshold)
  • Boosts lightness by 1.2x

In Light Theme:

  • Keeps original colors (no inversion)
  • Removes bright backgrounds (above threshold ~240)
  • Reduces lightness by 0.85x to increase contrast

Images will automatically re-render when you switch between light and dark themes.

Invert

Inverts the image.

name: @invert params: none.

Lightness boost

Converts the image pixel representation to hsl, and boosts the lightness.

name: @boost-lightness params:

  • amount:
    • float-value: the amount by which to boost the lightness.

Transparency

Make pixels below or above a certain threshold transparent.

name: @transparent params:

  • remove:
    • string-value: can be either "above" or "below"
      • if "above": removes pixels above the threshold
        • if "below": removes pixels below the threshold
  • threshold: all pixels that have r, g and b channels above or below this threshold will be made transparent.
    • int-value: compare all channels to the same threshold
    • string-value: can be any css-parsable string. e.g. "rgb((69, 42, 3))" or "hsl((35deg, 91.7%, 14.1%))" would have the same effect: image

Contributing

Filters

Feel free to open pullrequests or issues. Adding new filters is really straight forward, you can use existing filters for reference.

Mobile support

I don't use Obsidian Mobile myself, so if you want mobile support, feel free to open a PR.

Compatibility

  • Share Note Plugin will use the current image as you see it in Obsidian
  • Theme Detection respects Style Settings Plugin and any Themes such as Encore that support it

Known issues:

  • none so far
61%
HealthGood
ReviewRisks
About
Apply visual filters to Markdown image links, including a darkmode shorthand that inverts images, removes backgrounds and boosts lightness. Add filters in the image alias/alt text (e.g., @darkmode or @invert) and chain multiple filters left-to-right; support local embeds, Markdown links and remote images.
ImagesAppearanceMarkdown
Details
Current version
1.2.0
Last updated
4 months ago
Created
11 months ago
Updates
5 releases
Downloads
447
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
0qln0qln
GitHub0qln
  1. Community
  2. Plugins
  3. Images
  4. Image Darkmodifier

Related plugins

Pretty Properties

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

Pixel Banner

Enhance your notes with customizable banner images.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.