How sergei-korneev/obsidian-local-images-plus works
Obsidian Local Images Plus is an Obsidian plugin that localizes remote, embedded, and local attachments referenced by notes, then updates note links. Users can trigger processing manually or enable automatic processing; the plugin also supports individual-image context-menu downloads and orphan cleanup. The graph separates note orchestration, attachment processing, settings, and shared helpers. Main-to-module links are supported by the source index and excerpts; feature and vault relationships are documented in the README. Some implementation details are unsampled, so uncertain internal calls are omitted.
Main entry points: main.ts Plugin orchestration · contentProcessor.ts Attachment processing · settingstab.ts Settings interface · utils.ts File and network helpers
Components 17
Note workflow
- Plugin orchestration
src/main.ts - Note scanning
src/main.ts - Note link updates
src/main.ts - Orphan cleanup
src/main.ts
Attachment handling
- Attachment processing
src/contentProcessor.ts - Source acquisition
src/contentProcessor.ts - Naming and dedup
src/contentProcessor.ts - PNG conversion
src/contentProcessor.ts - Single-image download
src/main.ts
Plugin controls
- Settings interface
src/settingstab.ts - Confirmation dialogs
src/modal.ts
Shared support
- Plugin configuration
src/config.ts - File and network helpers
src/utils.ts - Retry queue
src/uniqueQueue.ts
Other components
- Obsidian user
- Obsidian vault
- Web sources
Connections 19
- Obsidian user → Plugin orchestration: starts processing
README.md - Plugin orchestration → Note scanning: scans notes
src/main.ts - Note scanning → Attachment processing: processes links
src/main.ts - Attachment processing → Source acquisition: reads sources
src/contentProcessor.ts - Web sources → Source acquisition: provides media
README.md - Source acquisition → File and network helpers: downloads or reads
src/contentProcessor.ts - Attachment processing → Naming and dedup: chooses names
src/contentProcessor.ts - Attachment processing → PNG conversion: converts PNG
src/contentProcessor.ts - Plugin orchestration → Note link updates: updates notes
src/main.ts - Note link updates → Obsidian vault: modifies notes
src/main.ts - Plugin orchestration → Orphan cleanup: removes orphans
README.md - Orphan cleanup → Obsidian vault: trashes attachments
src/main.ts - Obsidian user → Single-image download: selects image
README.md - Single-image download → Plugin orchestration: requests download
src/main.ts - Plugin orchestration → Settings interface: registers settings
src/main.ts - Plugin orchestration → Confirmation dialogs: opens dialogs
src/main.ts - Settings interface → Plugin orchestration: saves settings
src/settingstab.ts - Plugin orchestration → File and network helpers: uses utilities
src/main.ts - Plugin orchestration → Retry queue: queues retries
src/main.ts