Skip to main content

๐Ÿ“š Library Management

The Library page is your central hub for managing your photo library. Access it by clicking on your avatar (top right) and selecting Library, or via the spotlight search (Ctrl+K โ†’ "Library").

Overview Statsโ€‹

At the top of the Library page, you'll see quick stats about your library:

  • Photos โ€” Total number of photos and the number of days they span
  • People โ€” Number of recognized people, with a breakdown of inferred, labeled, and unknown faces
  • Faces โ€” Total faces detected
  • Events โ€” Number of auto-generated event albums

Scanningโ€‹

Scan Photos (File System)โ€‹

Click "Scan photos" to scan your configured scan directory for new photos. The scan process:

  1. Discovers new image and video files
  2. Groups related files (RAW+JPEG pairs, Live Photos) as file variants
  3. Creates thumbnails
  4. Extracts EXIF metadata
  5. Runs face detection
  6. Generates AI captions and tags
  7. Performs reverse geocoding
  8. Calculates CLIP embeddings for semantic search

You can also rescan to re-process all existing photos.

Scan Progressโ€‹

Scan progress is shown in the Job System. The scan is split into smaller tasks, prioritizing thumbnail creation so photos appear in the UI quickly while heavier processing (faces, tags) happens in the background.

Nextcloud Integrationโ€‹

If you have a Nextcloud instance, you can scan photos directly from it without manually transferring files.

Setupโ€‹

  1. On the Library page, find the Nextcloud section
  2. Enter your Nextcloud server URL, username, and password
  3. A green indicator will appear next to "Nextcloud Scan Directory" once connected
  4. Click the folder icon to browse and select your Nextcloud photo directory

Scanning from Nextcloudโ€‹

Click "Scan photos (Nextcloud)" to download and scan photos from your configured Nextcloud directory. Files are copied to the local filesystem under nextcloud_media/<username>/ before being processed.

note

Video files are currently not supported for Nextcloud scanning (#278).

Library Actionsโ€‹

The Library page provides quick access to common maintenance actions:

ActionDescription
Scan photosScan for new photos in the file system
Rescan photosRe-process all existing photos
Train facesRun face clustering and classification
Rescan facesRe-detect faces in all photos
Generate eventsCreate or regenerate auto albums
Delete missing photosRemove database entries for photos no longer on disk
Scan photos (Nextcloud)Scan photos from a connected Nextcloud instance

Service Managementโ€‹

LibrePhotos runs several background ML services. Administrators can monitor and control them from the Admin Area:

ServiceDescription
image_similarityCLIP-based image similarity index
thumbnailThumbnail generation
face_recognitionFace detection and recognition
clip_embeddingsCLIP embedding computation
llmLarge language model for captioning
image_captioningImage caption generation
exifEXIF metadata extraction
tagsPhoto tag generation (Places365 or SigLIP 2 depending on your Tagging Model setting)

For each service, you can:

  • View health status
  • Start or stop the service
  • Services are automatically started with Django and monitored by a cron job

Server Informationโ€‹

Server Statsโ€‹

Administrators can view system information in the Admin Area:

  • CPU โ€” Model, core count, usage
  • RAM โ€” Total and used memory
  • GPU โ€” GPU model and memory (if available)
  • Storage โ€” Total, used, and free disk space
  • Per-user stats โ€” Photo counts per user

Storage Displayโ€‹

The sidebar shows a storage usage bar indicating how much disk space your photo library is using relative to the total available space.

Server Logsโ€‹

Administrators can download the server log file (ownphotos.log) directly from the Admin Area for debugging purposes.

Image Versionโ€‹

The sidebar shows the current backend Docker image version. Hover over it to see the full version tag and git hash.

Management Commandsโ€‹

For advanced users with shell access, LibrePhotos provides several management commands:

# Scan all users' photo directories
python manage.py scan

# Full rescan (re-process all photos)
python manage.py scan -f

# Scan specific files
python manage.py scan -s /path/to/file.jpg

# Build similarity index for all users
python manage.py build_similarity_index

# Save metadata to image files or XMP sidecars
python manage.py save_metadata

# Start ML services
python manage.py start_service

# Clear site-wide cache
python manage.py clear_cache

# Create a new user
python manage.py createuser

# Create an admin user
python manage.py createadmin