Skip to content

gnartS/lr-ai-image-tagger

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

88 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Image Tagger for Adobe Lightroom Classic

Automatically tag your photos with AI-powered captions, descriptions, and keywords using Google Gemini AI or local Ollama models.

AI Image Tagger Multi AI Version

πŸš€ Features

AI-Powered Analysis

  • Smart Captions: Generate concise, descriptive captions (1-2 sentences)
  • Detailed Descriptions: Create comprehensive descriptions (2-3 sentences)
  • Intelligent Keywords: Extract relevant keywords automatically
  • Usage Instructions: Get AI suggestions for photo editing and usage
  • Copyright Detection: Identify visible copyright or attribution information
  • Location Recognition: Detect identifiable landmarks and locations

Professional Metadata Management

  • Complete IPTC Support: Save all metadata to industry-standard IPTC fields
  • Smart Keyword Storage: Keywords saved to Lightroom Keywords (automatically included in IPTC on export)
  • Configurable Options: Choose which metadata fields to save
  • Batch Processing: Analyze multiple photos efficiently with rate limiting
  • Export Functionality: Export analysis results to CSV for external processing

Advanced Customization

  • Custom Prompts: Create your own AI analysis prompts
  • Batch Configuration: Adjust batch size and processing delays
  • Keyword Management: Select/deselect keywords with bulk actions
  • Professional UI: Two-column layout optimized for workflow efficiency

πŸ“‹ Requirements

  • Adobe Lightroom Classic 2024 (or newer)
  • AI Provider (choose one):
    • Google Gemini AI API Key (cloud-based, free tier available)
    • Local Ollama installation (local processing, privacy-focused)
  • Internet Connection (for Gemini AI only)

πŸ”§ Installation

Step 1: Download the Plugin

  1. Download the latest release from the plugin website
  2. Extract the ZIP file to a folder on your computer

Step 2: Install in Lightroom

  1. Open Adobe Lightroom Classic
  2. Go to File > Plug-in Manager
  3. Click Add button
  4. Navigate to the extracted plugin folder and select it
  5. Click Done

Step 3: Choose and Configure AI Provider

Option A: Google Gemini AI (Cloud-based)

  1. Visit Google AI Studio
  2. Sign in with your Google account
  3. Click Get API Key
  4. Create a new API key or use an existing one
  5. Copy the API key (keep it secure!)

Option B: Ollama (Local processing)

  1. Install Ollama:

    • macOS: Download from ollama.ai or run brew install ollama
    • Windows: Download installer from ollama.ai
    • Linux: Run curl -fsSL https://ollama.ai/install.sh | sh
  2. Install a vision model:

    # Install the recommended LLaVA model
    ollama pull llava:latest
    
    # Or install a smaller/faster model
    ollama pull llava:7b
  3. Start Ollama server:

    ollama serve

    The server will run on http://localhost:11434 by default.

  4. Verify installation:

    ollama list

    You should see your installed models listed.

Step 4: Configure the Plugin

  1. In Lightroom, go to File > Plug-in Manager
  2. Select AI Image Tagger from the list
  3. Choose your AI Provider:
    • Google Gemini: Enter your API key in the API Key field
    • Ollama (Local): Configure server URL and model name
  4. Configure your preferred settings:
    • Choose which IPTC metadata fields to save
    • Set batch processing options
    • Customize AI prompts (optional)
  5. Click Done

🎯 Usage

Basic Usage

  1. Select one or more photos in Lightroom's Library module
  2. Go to Library > Plug-in Extras > Tag Photos with AI
  3. Wait for AI analysis to complete (speed depends on your chosen provider)
  4. Review and edit the generated metadata:
    • Caption: Brief description
    • Description: Detailed description
    • Keywords: Select relevant keywords
    • Instructions: Usage suggestions
    • Copyright: Attribution info
    • Location: Identified landmarks
  5. Click Apply for current photo or Apply All for all photos

Advanced Features

Custom Prompts

  • Enable Use custom prompt in plugin settings
  • Write your own AI analysis instructions
  • Tailor the AI output to your specific needs

Batch Processing

  • Configure Batch Size (1-10 photos per batch)
  • Set Delay Between Requests to avoid rate limiting
  • Monitor progress in the analysis dialog

Export Results

  • Click Export Results to save analysis data as CSV
  • Files saved as aiimagetagger_results_YYYYMMDD_HHMMSS.csv
  • Includes all metadata fields and processing times
  • Perfect for workflow documentation and analysis

πŸ” AI Provider Comparison

Feature Google Gemini Ollama (Local)
Cost Free tier: 1,500 requests/day Completely free
Privacy Images sent to Google All processing local
Speed Fast (cloud processing) Depends on hardware
Internet Required Yes No
Setup Complexity Simple (API key only) Moderate (software install)
Model Quality High (latest Gemini models) Good (LLaVA family)
Hardware Requirements None 8GB+ RAM recommended
Customization Limited Full control

Choosing Your Provider

Choose Gemini if you want:

  • Quick setup with just an API key
  • Fast processing without local hardware requirements
  • Latest AI capabilities with minimal configuration

Choose Ollama if you want:

  • Complete privacy (no data leaves your computer)
  • No ongoing costs or API limits
  • Offline capability
  • Full control over models and processing

βš™οΈ Configuration Options

IPTC Metadata Settings

  • βœ… Save caption to IPTC metadata
  • βœ… Save description to IPTC metadata
  • ⬜ Save keywords to IPTC metadata (Note: Keywords automatically included in IPTC on export)
  • ⬜ Save instructions to IPTC metadata
  • ⬜ Save copyright to IPTC metadata
  • ⬜ Save location to IPTC metadata

AI Prompt Customization

  • Use custom prompt: Enable/disable custom AI instructions
  • Custom Prompt: Write your own analysis instructions

Batch Processing

  • Batch Size: 1-10 photos (default: 5)
  • Delay Between Requests: 500-5000ms (default: 1000ms)

Keyword Management

  • Create Keywords: Choose decoration style (as-is, prefix, suffix, parent)
  • Keyword Value: Custom text for decoration

πŸ”’ Privacy & Security

Google Gemini

  • API Key Security: Keys are stored securely in Lightroom's password storage
  • Data Processing: Images are sent to Google's Gemini AI service for analysis
  • No Storage: Google does not store your images after processing
  • Local Metadata: All metadata management happens locally in Lightroom

Ollama (Local)

  • Complete Privacy: All processing happens on your local machine
  • No Network Access: Images never leave your computer
  • No API Keys: No external credentials required
  • Local Storage: All models and data stored locally

πŸ†˜ Troubleshooting

Common Issues

Google Gemini Issues

"API key not configured"

  • Ensure you've entered a valid Gemini AI API key in plugin settings
  • Check that the API key has proper permissions
  • Verify the key is active at Google AI Studio

"Network error"

  • Verify your internet connection
  • Check if your firewall allows Lightroom to access the internet
  • Try increasing the delay between requests

Ollama Issues

"Ollama server not accessible"

  • Ensure Ollama is running: ollama serve
  • Check the server URL in plugin settings (default: http://localhost:11434)
  • Verify Ollama is installed correctly: ollama list

"Model not found"

  • Install a vision model: ollama pull llava:latest
  • Check available models: ollama list
  • Verify the model name in plugin settings matches installed models

"Ollama connection timeout"

  • Increase timeout in plugin settings (especially for larger models)
  • Ensure sufficient RAM is available (8GB+ recommended)
  • Consider using a smaller model like llava:7b

General Issues

"Analysis failed"

  • Some images may not be suitable for AI analysis
  • Try with different image formats (JPEG works best)
  • Check the Lightroom log for detailed error messages
  • Switch to the other AI provider to test

Getting Help

πŸ“Š API Usage & Costs

Gemini AI Free Tier

  • 15 requests per minute
  • 1,500 requests per day
  • 1 million tokens per month

Cost Optimization Tips

  • Use batch processing with appropriate delays
  • Process images during off-peak hours
  • Consider upgrading to paid tier for heavy usage

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Credits

  • Created By: Anand's Photography (2025)
  • Powered by: Google Gemini AI
  • Built for: Adobe Lightroom Classic

πŸ™ Acknowledgements

Special thanks to @tjotala for lr-robotagger, which provided the inspiration to get started with this project.

πŸ”— Links


Made with ❀️ for photographers and content creators worldwide

About

A lightroom plugin that uses Gemini AI to annotate your images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 97.7%
  • Ruby 2.2%
  • Shell 0.1%