Home/Docs/Scanning & Processing

Scanning & Processing Images

The Scan Window

The scan window is where you process images for AI tagging and add them to your searchable database.

Tag-AI Scan Window

This window provides real-time feedback during the scanning and tagging process.

Starting a Scan

To scan and process images:

  1. Click the Scan button in the main interface
  2. The scan window will open
  3. Click the Scan button in the scan window to begin processing

The scan process will automatically:

The first scan of a large image library can take significant time, depending on your hardware and the number of images.

Processing Stages

Tag-AI processes images in several stages, all visible in the scan window output:

File Discovery

First, Tag-AI scans all folders specified in your configuration and identifies image files with supported formats.

Image Processing

For each new or modified image:

  1. File Hash Calculation: A unique hash is generated to identify the image
  2. Metadata Extraction: Date taken and other metadata are extracted
  3. Image Preparation: The image is resized and prepared for AI processing

AI Tagging

Images are sent to the configured AI model (local LLaVA or cloud Gemini) for analysis. The AI generates descriptive tags that capture the image content.

Database Storage

The processed image information and its tags are stored in the SQLite database, making them searchable.

Tagging Models

Tag-AI supports two AI tagging models:

Local Processing (LLaVA)

Using Ollama with the LLaVA model for local, private processing:

Cloud Processing (Gemini)

Using Google's Gemini API for cloud-based analysis:

You can switch between these models in the Configuration Editor.

Performance Considerations

GPU Acceleration

GPU acceleration dramatically improves processing speed:

Batch Processing

Tag-AI processes images in batches with optimized thread management:

Stopping a Scan

To stop an ongoing scan:

  1. Click the Stop button in the scan window
  2. Tag-AI will complete the current image processing before stopping
  3. All successfully processed images will be saved to the database

You can close the scan window while keeping it running in the background by clicking the Close button. The process will continue, and you can reopen the window from the main interface.

Troubleshooting

Scan Appears Stuck

If a scan appears to stall:

Failed Images

Some images may fail to process due to format issues or corruption. These are logged to:

unable_to_do.txt

This file is located in the Tag-AI installation directory.

Common Issues