
PiGallery2
Fast directory-first photo gallery for low-resource servers
2.3k stars 260 forks last commit first released MIT
Actively maintained
Last commit 25 Aug 2026.

PiGallery2 is a fast, directory-first web photo gallery that renders your existing folder structure as a read-only gallery. It is optimized for low-resource servers and focuses on quick browsing, searching, and viewing photos and videos without modifying your originals.
Key Features
- Directory-first browsing that mirrors your on-disk folder structure
- Fast indexing to a database for responsive browsing (SQLite or MySQL)
- Advanced search with boolean logic, negation, range queries, and autocomplete suggestions
- Photo viewer with optional info panel (including EXIF metadata)
- Map view from GPS photo metadata, with GPX track display and activity visualization
- Sharing links for folders with optional password protection
- On-the-fly thumbnail generation in multiple sizes with caching to a temp folder
- Video playback support and optional transcoding with thumbnail generation
- Markdown files in folders for simple blogging/notes and date attachment
- Logical albums based on saved searches and per-user allow/block filters
Use Cases
- Self-host a lightweight family photo archive that keeps your existing folder layout
- Quickly search large photo collections by date, rating, people metadata, and location
- Share selected folders externally via password-protected links
Limitations and Considerations
- The gallery is intentionally read-only and does not support organizing, editing, or tagging photos within the app
- Face features rely on existing metadata (no built-in ML-based automatic face detection)
PiGallery2 is best suited for users who want a fast, minimal-maintenance photo gallery that reflects their filesystem as-is. It provides powerful search and viewing features while keeping photo management in your regular file workflow.
Categories:
Tags:
Tech Stack:
Similar to PiGallery2
HomeGallery
Self-hosted web gallery for browsing photos and videos with AI search
Self-hosted open-source web gallery for personal photos and videos with tagging, mobile-friendly UI, face detection, and reverse image search for discovery.

Photoview
Self-hosted photo gallery that syncs albums from your filesystem
Photoview is a self-hosted photo gallery that scans your filesystem into albums, generates fast thumbnails, supports RAW/EXIF, and enables multi-user sharing links.

Photofield
Fast, non-destructive self-hosted photo gallery and viewer
Self-hosted personal photo gallery focused on speed, seamless zoom, and non-destructive filesystem-based collections with fast indexing and progressive loading.

LibrePhotos
Self-hosted photo management with AI-powered search and organization
LibrePhotos is a self-hosted photo and video management service with timeline views, metadata search, and machine-learning features like face recognition and semantic image search.

Lychee
Self-hosted photo management and sharing web app
Lychee is a self-hosted photo management system to upload, organize, view, and share photos and albums with a modern web interface.


Damselfly
Server-based photo management with fast search and AI tagging
Self-hosted photo management system for large folder-based libraries with fast full-text search, metadata indexing, and on-device face/object detection.





