LibrePhotos
Self-hosted, AI-driven photo management gallery and open-source Google Photos alternative.
Why consider LibrePhotos?
LibrePhotos is an open-source photo server featuring automatic facial recognition, object detection, and location clustering. It provides complete ownership of your personal photo memories.
Learn LibrePhotos by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide10 sections
What is LibrePhotos?
LibrePhotos is an open-source, self-hosted photo management server and gallery application built with Django, React, and Python. It serves as a direct private alternative to commercial photo storage platforms like Google Photos and Apple iCloud.
LibrePhotos uses offline machine learning models to detect faces, recognize objects and scenes, extract semantic visual labels, generate interactive location maps, and automatically compile album timelines without transmitting any user data over external networks.
Who Is It For?
- Privacy Advocates: Managing family photo archives on personal servers with on-device AI recognition and zero telemetry.
- Photographers: Scanning multi-terabyte image collections with non-destructive index modes and RAW file rendering.
- Homelabbers: Running a comprehensive self-hosted photo gallery accessible from web browsers and mobile clients.
Key Features
- Facial recognition engine with automatic face clustering, identity tagging, and unknown face suggestions.
- Semantic object and scene detection (e.g. food, mountains, cats, cars) powered by machine learning.
- Interactive geographic map view plotting photos using EXIF GPS coordinates.
- Timeline calendar view organizing media into years, months, and days.
- Support for multiple image formats including JPEG, PNG, HEIC, WebP, and RAW camera files.
Deploying LibrePhotos with Docker Compose
version: '3.7'services: backend: image: reallibrephotos/librephotos:latest container_name: librephotos_backend restart: unless-stopped volumes: - /media/photos:/data - ./protected_media:/protected_media environment: - DB_BACKEND=postgresql - DB_NAME=librephotos - DB_USER=librephotos - DB_PASS=secure_libre_db_password - DB_HOST=db - DB_PORT=5432 - ADMIN_EMAIL=admin@example.com - ADMIN_USERNAME=admin - ADMIN_PASSWORD=secure_admin_password depends_on: - db db: image: postgres:15-alpine container_name: librephotos_db restart: unless-stopped volumes: - ./pgdata:/var/lib/postgresql/data environment: - POSTGRES_DB=librephotos - POSTGRES_USER=librephotos - POSTGRES_PASSWORD=secure_libre_db_password frontend: image: reallibrephotos/librephotos-frontend:latest container_name: librephotos_frontend restart: unless-stopped ports: - 3000:3000 depends_on: - backendStart the instance:
docker compose up -dAccess http://localhost:3000 in your browser and log in with your configured admin credentials.
Practical Use Cases
1. Face Clustering and Family Timelines
A user uploads thousands of mixed family photos; LibrePhotos clusters faces into individuals, allowing one-click filtering to view all photos of a specific relative across twenty years.
2. Location-Based Vacation Exploration
A traveler opens the interactive map view and zooms into specific cities to view all photos captured during a European road trip based on embedded GPS coordinates.
3. Semantic Search Querying
A user types "snow forest sunset" in the search bar, and LibrePhotos instantly returns relevant photos using its pre-trained visual concept models.
Troubleshooting and Limitations
- Face Recognition Hardware Load: Initial face clustering scans on large photo libraries require significant CPU computation; let background scans complete overnight.
- HEIC Image Codecs: For Apple iPhone HEIC photo rendering, ensure the LibrePhotos container includes
libheifpackages (included in official Docker images).
Official Resources
- Official Website: https://librephotos.com
- GitHub Repository: https://github.com/LibrePhotos/librephotos
- Documentation: https://docs.librephotos.com
Related tools
More options with a similar category or technology profile.
MyPaint
Nimble, distraction-free, and easy graphic application for digital painters.
Pencil2D
Easy, intuitive traditional hand-drawn 2D animation software across raster and vector.
Hydrogen
Advanced open-source drum machine and pattern-based step sequencer for audio production.
Pure Data
Open source visual programming language for multimedia, audio, and physical computing.