Open source photo management and backup tools
Open source photo libraries that back up your phone, organize photos with faces, maps and search, or publish albums as a web gallery. All of them can run on your own server, and a few have hosted versions.
11 apps, sorted by GitHub stars as of 21 October 2026. Guide updated .
-
Immich
Self-hosted photo and video library with native mobile backup apps and local machine-learning search
-
PhotoPrism
Self-hosted photo library with automatic labels, face recognition, detailed search filters and world maps
-
Ente Photos
End-to-end encrypted photo backup with apps on every platform, hosted or self-hosted
-
LibrePhotos
MIT-licensed self-hosted photo library with face recognition, semantic search and automatic event albums
-
Photoview
Self-hosted photo gallery for photographers that turns folders on your server into albums
-
Lychee
Self-hosted photo gallery for uploading, organizing and sharing albums, built on PHP and Laravel
-
Piwigo
Long-running open source photo library and web gallery for individuals, teams and organizations
-
Memories
Photo management app that turns Nextcloud into a fast timeline with faces, albums, maps and video streaming
-
PiGallery2
Fast, read-only, directory-first photo gallery built to run on a Raspberry Pi
-
Damselfly
Server-based photo manager for large folder archives, with fast search and Picasa-style keyword tagging
-
HomeGallery
Single-binary web gallery for your photo folders, with similar-image search, faces and maps
Compare at a glance
| App | License | Self-hosting needs | Hosted version |
|---|---|---|---|
| Damselfly | GPL-3.0 | SQLite, ExifTool | No |
| Ente Photos | AGPL-3.0 | PostgreSQL, S3-compatible object storage | Yes |
| HomeGallery | MIT | Nothing beyond the app | No |
| Immich | AGPL-3.0 | PostgreSQL, Valkey or Redis | No |
| LibrePhotos | MIT | PostgreSQL or SQLite | No |
| Lychee | MIT | MySQL/MariaDB, PostgreSQL or SQLite | No |
| Memories | AGPL-3.0 | Nextcloud, MySQL/MariaDB or PostgreSQL, Redis, FFmpeg | No |
| PhotoPrism | AGPL-3.0 | MariaDB or SQLite | No |
| Photoview | AGPL-3.0 | MariaDB, PostgreSQL or SQLite, Darktable, FFmpeg | No |
| PiGallery2 | MIT | SQLite or MySQL | No |
| Piwigo | GPL-2.0 | MySQL or MariaDB, ImageMagick or PHP GD | Yes |
License exceptions, such as proprietary directories or paid plugins, are explained on each app page.
Find an alternative to
- Google Photos4 open source alternatives
- iCloud Photos4 open source alternatives
Choosing photo management software
Backup libraries, archive browsers and web galleries
The tools in this category do one of three jobs, so start by working out which one you need.
- Backup-first libraries replace Google Photos or iCloud Photos from start to finish. A mobile app uploads the camera roll in the background, and the server builds a timeline, groups faces and offers search and sharing. Immich and Ente Photos have their own Android and iOS apps. Memories does the same job inside Nextcloud and uses the Nextcloud mobile apps for automatic upload.
- Library and discovery tools index a folder archive you already have and add search, face recognition, maps and sharing. Getting photos off your phone is left to another tool. PhotoPrism (which works with third-party WebDAV sync apps), LibrePhotos, Damselfly and HomeGallery work this way.
- Web galleries are for publishing and sharing albums, often on cheap PHP hosting or a Raspberry Pi. Lychee, Piwigo, Photoview and PiGallery2 are in this group.
Several of these tools treat the file system as the source of truth. PiGallery2 and Photoview never write to the photo folder, and PhotoPrism and Immich’s external libraries can index folders read-only. That makes it easier to try a tool out, or to switch to another one later.
Encryption and who can see your photos
Ente Photos is the only listed project with end-to-end encryption. Files and metadata are encrypted on the device before upload, so face recognition and search have to run on the phone or computer rather than on the server. With every other tool, whoever runs the server can see the photos. That is acceptable when the server is your own machine at home, but it is worth thinking about before you use a shared host or a friend’s server. Where the machine learning runs varies too: Immich, PhotoPrism and LibrePhotos run their models on your server, and HomeGallery sends low-resolution previews to the project’s public API by default, unless you run that API server yourself or turn the AI features off.
A library is not a backup
Syncing is not the same as backing up. Apple says iCloud Photos is not duplicated in iCloud Backup and advises keeping your own copies, and a deletion syncs to every device and becomes permanent after 30 days. The same applies to a self-hosted server. Immich’s documentation recommends a 3-2-1 backup of both files and database, and points out that its automatic database dumps hold metadata only. PhotoPrism’s backup guide says a full backup needs the originals, a database dump and its storage folder. Plan for disk failure before you delete photos from your phone.
What to check before you choose
- Phone backup. A native app with background upload (Immich, Ente), the Nextcloud apps (Memories), a third-party sync app (PhotoPrism), or no phone backup at all (the galleries).
- Existing folders. Can it index your current archive in place, or do you have to upload everything into its own storage?
- Hardware. Immich needs at least 6 GB of RAM (8 GB recommended), LibrePhotos at least 4 GB (8 GB recommended), and PhotoPrism at least 2 cores and 3 GB. Ente’s server needs about 1 GB because the machine learning runs on the clients, and PiGallery2 is built for a Raspberry Pi.
- Migration. PhotoPrism reads the JSON metadata in a Google Takeout export but does not import albums. Ente’s desktop app imports Takeout archives, and Memories documents Takeout migration. For Immich, the project points to the community tool immich-go.
- Sharing. Public links, shared albums, partner sharing and separate accounts for family members.
- License and paid editions. PhotoPrism’s default Docker image is under the proprietary PhotoPrism Plus License, and its
cetag is the AGPL build. Lychee sells a Supporter Edition with extra features. Each app page explains these details.
Projects not listed
No notable source-available self-hosted photo library (BSL, FSL, SSPL and similar licenses) turned up. PhotoStructure is often mentioned, but it is proprietary software under an end-user license agreement, and its GitHub repository only holds install files. digiKam is developed on KDE’s own GitLab and is a desktop application. Photonix says it is not yet feature complete for version 1.0, and Stingle Photos is below the size threshold for this directory.