PiGallery2 is a self-hosted photo gallery application that displays photographs and videos directly from existing filesystem directories.
It is designed for lightweight servers, including Raspberry Pi systems, and does not require photographs to be imported into a separate library. The directory hierarchy determines how albums are presented, while background indexing and thumbnail generation help make large collections accessible through a browser.
PiGallery2 combines folder-based browsing with advanced searching, geographical maps and configurable sharing. It also supports saved searches, virtual albums and automatic photo-frame displays.
This is free and open source software.
Key Features
- Display existing filesystem directories as nested photo albums.
- Automatically generate thumbnails in multiple sizes, prioritising photographs currently visible on screen.
- View photographs and videos in a full-screen viewer with keyboard and touch controls.
- Display EXIF information, including camera settings, dates and geographical coordinates.
- Support advanced searching with Boolean operators, negation and wildcard matching.
- Search using dates, ratings, resolution, orientation, keywords, filenames and other metadata.
- Find photographs within a specified distance of a geographical location.
- Explore geotagged photographs through OpenStreetMap and other configurable map providers.
- Display GPX tracks on maps, with different colours and icons for supported activities.
- Create logical albums from saved search queries.
- Share directories, albums and search results through links with optional password protection.
- Apply per-user allow and block filters to photographs and directories.
- Read Adobe XMP face-region metadata and display face overlays on photographs.
- Include Markdown content alongside photographs in gallery directories.
- Create automatically advancing photo-frame displays for directories or search results.
- Generate random photograph links for use by external applications.
- Support JPEG, PNG, WebP, GIF and other image formats, with additional formats depending on image-processing support.
- Play supported videos and generate video thumbnails.
- Configure album sorting through directory-specific configuration files.
- Provides an extension system for custom server-side operations.
- Supports a responsive interface with configurable authentication and gallery settings.
Website: github.com/bpatrik/pigallery2
Support:
Developer: Patrik J. Braun
License: MIT License

PiGallery2 is written in TypeScript. Learn TypeScript with our recommended free books and free tutorials.
Related Software
| Web Photo Gallery | |
|---|---|
| PhotoPrism | AI-powered photos app for the decentralized web |
| Immich | Simple to use backup tool for self-hosted photos and videos |
| Piwigo | An excellent solution for hosting and sharing your photos |
| Photoview | Simple and user-friendly photo gallery that’s made for photographers |
| LibrePhotos | Self-hosted photo management service |
| Zenphoto | Mature, standalone Content Management System |
| Coppermine | Feature-rich and integrated, web picture gallery script |
| MediaGoblin | Decentralized Web platform for hosting and sharing digital media |
| Lychee | Attractive and easy-to-use photo management system |
| MyPhotoShare | Static web photo, audio and video gallery |
| PiGallery2 | Self-hosted web application for publishing photo collections |
| Memories | Self-hosted photo and video management application |
| HomeGallery | Featuring tagging, mobile-friendly, and AI powered image discovery |
| Slink | Self-hosted platform for uploading and sharing images |
| Damselfly | Server-based Digital Photograph Management system |
| Ente Photos | Privacy-focused platform for storing personal data |
| ChronoFrame | Self-hosted gallery for organizing and browsing photographs |
| Zoph | Built with PHP and MariaDB |
| Fussel | Photo gallery generator |
| spis | Lightweight, private server for hosting and sharing images |
| Sigal | Generates static photo galleries from image collections |
| Photofield | Fast self-hosted photo gallery for large image collections |
| PicPeak | Self-hosted event photo sharing and collection platform |
| fgallery | Static photo gallery generator with no frills that has a stylish, minimalist look |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.