Image Renamer

by Kuioma
5
4
3
2
1
Score: 30/100

Description

Obsidian plugin: intercepts image paste to rename files instantly with customizable templates (date, counter, frontmatter). Zero-flicker, auto-fixes wikilinks.

Reviews

No reviews yet.

Stats

1
stars
1,003
downloads
0
forks
177
days
177
days
177
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
1
open issues
0
closed issues
3
commits

Latest Version

6 months ago

Changelog

Features

  • Instant paste rename — intercepts paste events and writes images with the template name directly, so the old filename never appears in your note
    
  • Drag-drop rename — auto-rename images dragged from Finder into a note
    
  • Configurable templates — {{date}}, {{time}}, {{datetime}}, {{counter}}, {{original}}, {{filename}}, and custom frontmatter variables (with {{key:default}} fallback syntax)
    
  • Auto counter per note — sequential numbering via image-counter frontmatter, auto-decrements when images are deleted
    
  • Per-note image folder — override the default folder via image-folder in frontmatter
    
  • Batch organize — rename all images in the current note or across the entire vault
    
  • Unreferenced images finder — locate and clean up orphaned images (move to trash or permanently delete)
    
  • Bilingual UI — English and Chinese, switchable in settings
    

    Installation

    Available in Obsidian Community Plugins (pending review). For manual installation:

    1. Download main.js and manifest.json from this release
    2. Create .obsidian/plugins/image-renamer/ in your vault
    3. Copy both files into the folder
    4. Enable in Settings → Community Plugins

README file from

Github

Obsidian Image Renamer

Rename pasted images instantly with customizable templates. Zero flicker — the old filename never appears in your note.

Features

  • Instant paste rename — intercepts paste events, saves images with your template name before Obsidian inserts the link
  • Drag-drop rename — auto-rename images dragged from Finder
  • Customizable templates — {{date}}, {{time}}, {{counter}}, {{original}}, {{filename}}, and frontmatter variables
  • Auto counter — sequential numbering per note via image-counter frontmatter, auto-decrements on delete
  • Batch organize — rename images in current note or entire vault
  • Unreferenced images — find and clean up orphaned images
  • Bilingual UI — English and Chinese, switchable in settings

Template Variables

Variable Description
{{date}} Formatted date (configurable)
{{time}} Formatted time
{{datetime}} Date + time
{{counter}} Auto-increment per note
{{original}} Original filename (falls back to timestamp)
{{filename}} Active note name
{{any_frontmatter_key}} Value from frontmatter

Default template: {{original}}

You can set per-note image folder via image-folder in frontmatter.

Commands

  • Organize images in current note
  • Organize images in all notes
  • Find unreferenced images

Language

Default: English. Switch to Chinese in plugin settings (语言设置 → 界面语言 → 中文).

Installation

From Obsidian Community Plugins

  1. Open Settings → Community Plugins
  2. Search "Image Renamer"
  3. Install and enable

Manual

  1. Clone into .obsidian/plugins/image-renamer/
  2. npm install && npm run build
  3. Enable in Obsidian Community Plugins