Skip to content

simon-epfl/obsidian-image-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Obsidian Image Organizer

A Python script that organizes images in Obsidian vaults by moving them into assets folders next to the Markdown files that reference them.

Features

  • Automatically finds all Markdown files and images in your Obsidian vault
  • Creates assets folders next to Markdown files that use images
  • Moves images to their corresponding assets folders
  • Preserves image dimensions in Obsidian's internal links
  • Supports PNG, JPG, JPEG, GIF, and BMP files

Usage

  1. Make the script executable:

    chmod +x organize_images.py
  2. Run the script from your Obsidian vault directory:

    ./organize_images.py

Example

Before:

vault/
├── note.md
└── image.png

After:

vault/
├── note.md
└── assets/
    └── image.png

The reference in note.md will be updated from ![[image.png]] to ![[assets/image.png]].

Requirements

  • Python 3.6 or higher
  • Standard library only (no external dependencies)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages