PiGallery 2
A directory-first photo gallery website, with a rich UI, optimised for running on low resource servers.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Introduction
PiGallery2 is a fast, self-hosted web gallery designed around directories: it doesn't require you to import photos or reorganize your files, and instead displays photos and videos directly based on the folder structure that already exists on disk. The project is optimized for low-resource servers, so it runs smoothly even on devices like the Raspberry Pi.
An official online demo is available (the first time you open it, you may have to wait about 60 seconds for the server to start), so you can try it out before deciding whether to deploy it.
Key Features
- Directory-first browsing: Maps directly onto your existing photo folders without modifying the original files
- Thumbnail and preview generation: Generates thumbnails in the background, so browsing large numbers of photos stays fast
- Photo and video support: View photos and play videos in the browser
- Metadata reading: Reads the EXIF and other information embedded in photos for display, search and filtering
- Search: Find photos by keyword, metadata and other criteria
- Sharing: Generate share links to share albums with others
- User and permission management: Supports multiple users with different access permissions (see "User Rights" in the official documentation)
- Extension mechanism: Provides an interface for developing Extensions
For the full feature list, see the Features page of the official documentation.
Target Users and Use Cases
- Users who already organize their photos in folders and don't want to import them into a dedicated gallery app
- Self-hosting enthusiasts who want to set up a family photo gallery on a Raspberry Pi, a NAS or an old computer
- Individuals or small groups who need to share photos with family and friends through the web
Core Strengths
- Lightweight and fast: Optimized for low-spec hardware with a small resource footprint
- Leaves original files untouched: Preserves your existing directory structure, so moving in and out is effortless
- Simple deployment: Docker deployment is the officially recommended method, and detailed advanced tutorials are provided
Installation and Deployment
The official documentation offers the following methods:
- Docker (recommended): Use the official image and mount your photo directory into the container to get it running
- Advanced deployment: The documentation provides deployment tutorials using Portainer and Nginx Proxy Manager, as well as an optional Authentik SSO (single sign-on) integration guide
- Direct installation (not officially supported): Install and run it directly in a local Node.js environment
After deployment, you can change the configuration in the web interface; see the Configuration section of the official documentation for details.
Technical Notes
- Built with Node.js / TypeScript, with the source code hosted on GitHub (bpatrik/pigallery2)
- Running it through Docker is the officially recommended approach, and it also suits ARM devices such as the Raspberry Pi
- The documentation includes contribution guidelines, a description of the Docker development environment and documentation for developing extensions
Notable Characteristics
- The project is positioned as a "gallery browser", not a photo editing or photo backup tool; it displays your existing photo library in a read-only manner
- The official blog documents the project's history and future plans, and also features a 2025 "from zero to expert" deployment tutorial
Discover more
ChronoFrame
Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
HomeGallery
Browse personal photos and videos featuring tagging, mobile-friendly, and AI powered image discovery.
Ente
An end-to-end encrypted photo-sharing platform (alternative to Google Photos, Apple Photos).
LibrePhotos
Photo management service with a slight focus on cool graphs (alternative to Google Photos).
Lychee
Grid and album based photo-management-system.
Photofield
Experimental fast photo viewer.