An Obsidian plugin that displays all images in your vault in a beautiful gallery view with OCR text search capabilities. Supports both local and remote images.
- Gallery View: Display all images from your vault in an organized gallery layout
- OCR Text Recognition: Automatically extract text from images using macOS Vision framework
- Smart Search: Search images by their OCR content or contextual information
- Support for Multiple Formats: Works with both local images and remote image URLs
- Context-Aware: Shows which notes reference each image and surrounding content
- Batch Processing: Efficiently process multiple images with configurable concurrency
- Download the latest release files (
main.js,manifest.json,styles.css) - Copy them to your vault's plugin folder:
VaultFolder/.obsidian/plugins/image-gallery-plugin/ - Reload Obsidian and enable the plugin in Settings → Community Plugins
- Clone this repository to your vault's plugin folder
- Install dependencies:
npm i - Build the plugin:
npm run build - Reload Obsidian and enable the plugin
The plugin automatically scans your vault for images and provides:
- A gallery view accessible through the ribbon icon or command palette
- OCR text extraction from images (macOS only)
- Search functionality to find images by their text content
- Context information showing which notes reference each image
The OCR functionality uses macOS's Vision framework and supports:
- Multi-language recognition: Optimized for Chinese (Simplified & Traditional) and English
- Automatic language detection
- Caching: Results are cached to avoid re-processing unchanged images
- Context extraction: Captures surrounding text from notes that reference images
- Advanced search: Support for phrases, negation, and OR operators
"exact phrase": Search for exact phrases-word: Exclude images containing this wordword1 OR word2: Find images containing either wordword1 word2: Find images containing both words
npm run dev # Development mode with file watching
npm run build # Production buildmain.ts: Main plugin entry pointocr-service.ts: OCR functionality and image text processingstyles.css: Plugin stylingmanifest.json: Plugin metadata
- Obsidian v0.15.0+
- macOS (for OCR functionality)
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - see LICENSE file for details.
Julian Zhang (@forrestchang)