LibrePhotos for Windows
New in 1.7.0 Download LibrePhotos for Windows
(LibrePhotos-Setup.exe, for 64-bit Windows 10 and 11). It needs no administrator rights.
There is also a zip without an installer, see Running it from the zip.
What is it?
LibrePhotos for Windows is a program for your own PC. It reads your photos, recognises what is in them, and lets you search them, for example for "dog" or "beach".
You use LibrePhotos in your web browser. The browser is only its window: your photos stay on your PC, and LibrePhotos does not upload them. The program itself has no window. It has a small icon in the tray, at the bottom right of the screen, see Where is LibrePhotos?
If you only want to look at the pictures in your folders, and not search them by what is in them, LibrePhotos Viewer is enough. Which program do I need? helps you choose.
How do I install it?
New in 1.7.0 The installer puts LibrePhotos into your own user account. It needs no administrator rights and changes nothing for the other users of the PC.
- Download
LibrePhotos-Setup.exe(see above). It is about 110 MB. - Double-click it. Windows may show Windows protected your PC, because the installer is not signed yet: click More info, then Run anyway.
- Choose how you want to open LibrePhotos. Put a LibrePhotos icon on the desktop is ticked, Open LibrePhotos by itself when the computer starts is not. Click Install.
- Leave Open LibrePhotos now ticked and click Finish. LibrePhotos opens in your browser, see What happens when I open it the first time?
Not released yet (comes after 1.7.0) Up to 1.7.0 the desktop icon was off unless you ticked it, and the two choices were called Create a desktop shortcut and Start LibrePhotos when I sign in to Windows. The installer speaks the language of Windows, in English or German so far; up to 1.7.0 it was only in English.
What happens when I open it the first time?
LibrePhotos opens in your browser by itself. The first start takes a minute or two. The page says LibrePhotos is getting ready and turns into LibrePhotos when it is done. Not released yet (comes after 1.7.0) Up to 1.7.0 it said "LibrePhotos is updating".

If the page says something else, see What if it does not start?
Not released yet (comes after 1.7.0) Then LibrePhotos asks three short questions:
-
What you would like to do with your photos.
-
Your name. On your own PC you need no password, see Do I need a password?

-
Where your photos are, see Which folder do I choose?
Not released yet (comes after 1.7.0) LibrePhotos then reads your photos. The first ones appear after a few seconds, and the others follow by themselves. You can look at them while it reads. First steps has more about the questions.
To recognise what is in your photos, LibrePhotos downloads about 1 GB once. That needs an internet connection. After that you can type what you are looking for into the search box at the top:


Where is LibrePhotos? I see no window.
LibrePhotos runs in the background. Its icon is in the tray, at the bottom right of the screen next to the clock. Windows 11 may hide a new icon behind the ^ arrow (Show hidden icons). Drag it from there onto the taskbar to keep it in view.
Click the icon to open your photos. Right-click it for its menu:
| Menu item | What it does |
|---|---|
| The greyed first line | What LibrePhotos is doing |
| Open my photos (also a plain click) | Opens LibrePhotos in your browser |
| An update, when there is one | Updates from LibrePhotos |
| Start when the computer starts | Ticked when LibrePhotos starts by itself after you sign in to Windows |
| Help | Opens this page |
| More | Check for updates (see How do I know there is an update?), Open data folder and Open logs |
| Quit LibrePhotos | See How do I quit LibrePhotos? |
Not released yet (comes after 1.7.0) Up to 1.7.0 the menu had no Start when the computer starts and no Help, Open my photos was called Open LibrePhotos, and the items of More were in the menu itself.
New in 1.4.0 The icon appears as soon as LibrePhotos starts. While it starts, the first line of its menu says what it is doing: Starting..., Updating the database (3 of 7) after an update, Starting services..., and finally LibrePhotos is running. The first start after an update also shows a notification, because updating the database can take a few minutes.
How do I quit LibrePhotos?
Not released yet (comes after 1.7.0) Click the round button with your initials at the top right of LibrePhotos and choose Quit LibrePhotos:


The page then says LibrePhotos is closed and how to open it again. Leave it open if you like: it goes on by itself as soon as LibrePhotos runs again. LibrePhotos asks first when it is still working on your photos or when photos are still being uploaded. Only admins, such as the person who set up LibrePhotos, see the item, and only in a browser on this PC.
Quit LibrePhotos in the menu of the tray icon does the same. Up to 1.7.0 that was the only way. Closing the browser does not quit LibrePhotos.
Quitting can take up to half a minute while LibrePhotos is working on a photo. The tray icon says Closing... until it is done, and LibrePhotos goes on with that work at the next start. Not released yet (comes after 1.7.0) Up to 1.7.0 the icon disappeared at once, while LibrePhotos was still closing.
How do I open it again?
Double-click the LibrePhotos icon on your desktop, or open the Start menu, type LibrePhotos and press Enter. It
opens your photos in the browser. This also works while LibrePhotos is open already. Opening it while it closes
waits for that and then starts it.
What if I open a bookmark while LibrePhotos is closed?
Not released yet (comes after 1.7.0) When you open a bookmark of LibrePhotos while it is not open, the page says LibrePhotos is closed and how to open it. Open LibrePhotos, and the page goes on by itself. If Windows asks who you are each time, confirm it in the window that opens; the old page goes on after that. This works in a browser on this PC in which an admin has opened LibrePhotos before; any other browser shows its own error page, as all of them did up to 1.7.0.
If another program uses the address later, the browser shows that program, and the page of LibrePhotos is gone for good. After
you uninstall LibrePhotos, the browser still says LibrePhotos is closed at the old address as long as nothing else uses
it. Delete the bookmark, or the site data of 127.0.0.1 in the browser's settings, to get rid of it.
Should LibrePhotos start with my computer?
Not released yet (comes after 1.7.0) LibrePhotos does not open by itself unless you want it to. When it is opened for the second time and has photos, it asks once: Open LibrePhotos by itself when the computer starts? Choose Yes and LibrePhotos is ready as soon as you open it. It stays in the background and opens no window, so Windows asks nothing either until you open LibrePhotos yourself. It does not ask again, and not at all if you turned it on in the installer.
You can change it at any time, in the Admin area under Site settings (Open LibrePhotos by itself when this computer starts), in the menu of the tray icon, or in Settings > Apps > Startup of Windows. The question and the switch are only shown to an admin, in a browser on the PC LibrePhotos runs on.
Which folder do I choose?
Not released yet (comes after 1.7.0) The list shows your Pictures folder, every connected drive with its name, such as Photos (E:), your Desktop, Documents and Downloads folders, and below them the other folders of your user folder under Other folders of and your name. Click the folder with your photos. The folders inside it are included. Click the arrow in front of a folder to see the folders inside it.

You can choose another folder later: click the round button with your initials, choose Settings, and under
Account and photo folder click Choose another folder. It shows the same list. That also works while the
drive with the old folder is not connected. Up to 1.7.0 only folders in your user folder could be chosen, unless you
started LibrePhotos with --photos.
A network drive appears once it has a drive letter (File Explorer → This PC → Map network drive). Folders
on the system drive outside your user folder (C:\Photos), the folders of Windows and AppData are not offered,
see Folders LibrePhotos does not offer.
My photos are on an external drive
Not released yet (comes after 1.7.0) Plug the drive in. It appears in the list after a few seconds. Click the folder with your photos on it.
You can unplug the drive afterwards. You can still look through your photos and search them, because LibrePhotos keeps smaller copies of them on your PC. Nothing is deleted. When you plug the drive in again, LibrePhotos notices it and adds your new photos by itself. When the drive got another letter, such as F: instead of E:, LibrePhotos switches to it by itself or asks you once: Your photos are now on F:, with Use this folder. See Photos on an external drive.
What if it does not start?
Not released yet (comes after 1.7.0) The page in your browser says what happened. Your photos are safe in all of these cases.
| The page says | What to do |
|---|---|
| LibrePhotos could not start | Open LibrePhotos again, the way you opened it before. The same page then goes on by itself. If it says this again, restart the computer and try once more. |
| LibrePhotos is not open any more | It was closed, or it stopped by itself. Open LibrePhotos again. |
| There is not enough free space on this computer | Delete things you no longer need, empty the Recycle Bin, and open LibrePhotos again. |
| Another program is in the way | Restart the computer and open LibrePhotos before other programs. If it stays, see Using another port. |
If no page is open, a message box says the same. You can open LibrePhotos again without closing the box first.
If it still does not start, the reason is in a file named console.log:
- Press Windows key + R.
- Paste
%LOCALAPPDATA%\LibrePhotos\logsand press Enter. A folder opens. - Open
console.log. The reason is near the end. If you have opened LibrePhotos again since then, it is inconsole.previous.log.
To ask for help, send the end of that file with your question. Read it first: it can hold names of your photos and folders.
Up to 1.7.0, a page that was already open kept saying "LibrePhotos is starting" when the start failed or LibrePhotos was closed.
Can I see my photos on my phone?
Not released yet (comes after 1.7.0) LibrePhotos only opens on this PC until you let others in. For a phone, a tablet or another computer in your home network:
- Open Account menu > Admin area on this PC. Under Phone and other devices, click Show how.
- Choose a password if you have none, and click Open it for other devices. When Windows asks about the network, click Allow; it may want an administrator password.
- Point the camera of your phone at the code on the page, and sign in with your name and password.
It stays that way, also when LibrePhotos starts with Windows. If the phone cannot connect, the network is often set to Public network in Windows; Phone and other devices says how to change that, how to close LibrePhotos for other devices again and what to do when you forgot your password.
Up to 1.7.0 this needed a shortcut with run --host 0.0.0.0, and the start with Windows ignored it.
Such a shortcut still works.
Which language does it speak?
Not released yet (comes after 1.7.0) The tray menu, the notifications, the message boxes and the pages LibrePhotos shows while it starts or
after a failed start use the display language of Windows, in English or German so far; any other language gets
English. LIBREPHOTOS_LANGUAGE=en or =de overrides it. The language of LibrePhotos itself is in Settings.
The logs stay in English. Up to 1.7.0 all of these were only in English. How to add a language:
Texts outside the web app.
How do I update?
An update replaces the program folder and keeps the data folder: your photos, albums, people, users and settings are all still there afterwards. LibrePhotos can do it itself (Updating from LibrePhotos); by hand works for every release.
How does LibrePhotos update itself?
New in 1.5.0 When a newer release is out (see Knowing when there is an update), LibrePhotos downloads it and restarts into it. The first release that can do this is 1.5.0: to get from 1.4.0 or older to 1.5.0, update by hand once.
- Back up the database if you want a copy on another drive. LibrePhotos makes a copy
in
db\backupsitself before it updates the database. - In the browser, open Admin area and click Download update on the Update available card. Or right-click the LibrePhotos icon in the tray and choose Download LibrePhotos 1.5.0.
- LibrePhotos downloads the release from GitHub while it keeps running. The card shows how far it got, and the tray menu says Downloading 1.5.0 (42 %). An interrupted download continues where it stopped when you try again.
- When the card says the update is downloaded and checked (and a notification says "LibrePhotos 1.5.0 is ready"), click Restart to update on the card, or choose Restart to update to 1.5.0 in the tray menu. If a job such as a scan is running, LibrePhotos asks first; the job goes on after the restart. Not released yet (comes after 1.7.0) Up to 1.7.0 a long job could fail when LibrePhotos was closed for the third time while it ran.
- LibrePhotos quits, puts the new release in place and starts it. After a minute or two (longer when the release updates the database) the browser page reloads by itself on the new release.
If the new release does not start, nothing is deleted and a message box says where the old release is; Going back has the steps.
What an update does on your disk, how LibrePhotos checks the download, and when it cannot update itself: What an update does.
I use the zip. How do I move to the installed version?
New in 1.7.0 A LibrePhotos you unzipped yourself can move to the installed version: a Start menu entry, an icon on the desktop, an optional start when you sign in, and Uninstall in Windows' Settings. Your library does not move: the installed version uses the same data folder, so your photos, albums, people, users and settings are all there.
From 1.6.0 or 1.5.x, first update from LibrePhotos to this release as usual: those releases only know the zip, so the update still arrives as a zip. Then:
- In the browser, open Admin area. While LibrePhotos runs from an unzipped folder, a Move to the installed version card is there. Click Move to the installed version on it (or right-click the LibrePhotos icon in the tray and choose Move to the installed version).
- LibrePhotos downloads the installer of the release it runs from GitHub into the
updatesfolder of the data folder, and checks it against the release'sSHA256SUMS, as it checks an update. - When the card says the installer is ready, click Restart to finish moving (tray: Restart to finish moving).
- LibrePhotos quits, installs itself into
%LOCALAPPDATA%\Programs\LibrePhotoswithout any window and starts from there with the same options (--data-dir,--port, ...). After a minute the browser page reloads by itself, and a notification says where the old folder is.
What stays and what changes:
- The folder you unzipped into (for example
C:\Users\<you>\LibrePhotos-app, withlibrephotosandlibrephotos-oldin it) stays as it was: it is the way back. Nothing runs from it any more. Delete it once everything works, together with the shortcuts you made to it. - A shortcut to the old
librephotos.exethat is still there (on the desktop, in the Startup folder, in Task Scheduler) starts the installed version instead. - A data folder of your own (
--data-dir) and the topmost photo folder (--photos) go into the new Start menu entry. Other options, such asrun --port 8080, do not: add them to that shortcut as in Using another port. - If you opened LibrePhotos to your network (
run --host 0.0.0.0), Windows Firewall asks once more, for the new program folder. The rule for the old folder can go: Windows Security > Firewall & network protection > Allow an app through firewall. - The downloaded installer is deleted after the move. Its log,
setup.log, is next toupdate.login the logs folder.
If the installer fails, or the installed version does not start, LibrePhotos starts again from the
old folder and a message box says why; update.log in the logs folder has the details, and the
card offers the move again.
Running LibrePhotos-Setup.exe yourself works too: quit the unzipped LibrePhotos first (the
installer refuses while it runs), install, and start LibrePhotos from the Start menu. It uses the
same data folder, so your library is there. Shortcuts to the old folder then still start the old
release, which refuses to start once the installed version has updated the database: delete the
old folder and its shortcuts.
To go back to the unzipped copy, uninstall LibrePhotos (see Uninstalling) and start
librephotos.exe in the old folder again. If the installed version has updated the database in the
meantime, put the database from before back as in Going back.
How do I update by hand?
The installed version: quit LibrePhotos, then download and run the new LibrePhotos-Setup.exe. It keeps your library and your choices. The steps below are for the zip.
The steps assume the program is in C:\Users\<you>\LibrePhotos-app\librephotos; use your own
folder if it is somewhere else.
-
Back up the database. New in 1.4.0 The new release also makes a copy of the database itself before it changes it (see below), but a copy on another drive is the safe way back.
-
Quit LibrePhotos and wait until its icon in the tray disappears, which takes a few seconds.
-
Download the new
librephotos-windows-x64.zipfrom the releases page, and read that release's notes: some ask you to do something once after the update. -
In File Explorer, open
C:\Users\<you>\LibrePhotos-app, right-click thelibrephotosfolder, choose Rename and call itlibrephotos-old. If Windows says the folder is in use, LibrePhotos is still running: wait a moment and try again, or endlibrephotos.exein Task Manager.Do not unzip the new release over the old folder instead. Files that are still in use cannot be replaced, and files the new release no longer has stay behind, so the folder can end up with a mix of both releases. The old folder is also your way back.
-
Right-click the new zip, choose Extract All..., and extract it into
C:\Users\<you>\LibrePhotos-appagain. You now have a newlibrephotosfolder next tolibrephotos-old. Shortcuts tolibrephotos\librephotos.exekeep working. -
Double-click
librephotos.exein the newlibrephotosfolder, once. If the release brings database changes, the first start updates the database, and the browser shows "LibrePhotos is updating" meanwhile (what the page says). That can take a few minutes with a large library: wait, and do not start it again meanwhile. -
Check that LibrePhotos works: log in and open a few photos and albums. Then delete the
librephotos-oldfolder. Keep it for a while if you might want to go back.
New in 1.4.0 What the first start after an update does (up to 1.3.0 it only updated the database, and nothing showed until the browser opened):
- It copies the database into
db\backupsin the data folder before it changes anything. The copy is named after the new release and the time, and holds the database as the old release left it. The three newest copies are kept. If there is not enough free disk space for the copy, LibrePhotos does not start, and a message box says how much space to free. See Automatic backups. - The tray icon says Updating the database (3 of 7) while it works, and a notification says that the database is being updated.
- After an update from 1.3.0 or older, it moves the secret key from
logs\secret.keytoprotected_media\secret.key.
If the new release does not start, the message box says why, and console.log in the logs folder
(tray: More > Open logs) has the details. You can always go back to the old release.
How do I know there is an update?
New in 1.5.0 LibrePhotos asks GitHub once a day whether a newer release is out (see
Checking for new releases for what that sends). When one
is, and its librephotos-windows-x64.zip can be downloaded:
- a Windows notification says "LibrePhotos 1.5.0 is available" once for that release;
- the tray menu has Download LibrePhotos 1.5.0, which updates from LibrePhotos (where LibrePhotos cannot update itself: Update to 1.5.0 available..., which opens these steps);
- admins see an Update available card at the top of the Admin area, with Download update (or How to update the Windows app), Release notes and Skip this release.
More > Check for updates in the tray menu asks at once and answers with a notification, also when LibrePhotos is up to date. A release skipped on the Admin page is not announced again; the next one is. To turn the check off, switch off Check for new releases in Admin area > Site Settings.
Upgrading from 1.3.0 or older
New in 1.4.0 Up to 1.3.0, LibrePhotos on Windows took the time on your PC's clock for UTC when it recorded when a photo was added and when it checked whether a file had changed since the last scan. West of Greenwich (UTC minus some hours, as in the Americas) a normal scan could therefore skip a file you edited within those hours after a scan, and the places and faces of photos added shortly after an earlier run were not looked up. Run a full rescan once after the upgrade: on the Library page, in the Scan library section, click the arrow next to Scan and choose Rescan (or Rescan All Photos in the Ctrl+K command palette). East of Greenwich nothing was missed. Either way, the times in Recently added stay shifted by your UTC offset for photos added before the upgrade.
How do I back up my library?
The most complete backup is a copy of the whole data folder, %LOCALAPPDATA%\LibrePhotos. It can
be many GB, mostly thumbnails and machine learning models, which LibrePhotos makes again by a
rescan or downloads again. If that is too much, back up at least these two, which nothing can make
again:
| What | Why |
|---|---|
The db folder | The database: users, albums, people and face names, favourites, ratings, captions, settings. |
protected_media\secret.key (1.3.0 and older: logs\secret.key) | Encrypts the saved email server password and Nextcloud app passwords, and signs every login. Without it, everyone has to log in again and those passwords have to be entered again. |
Two small folders in protected_media are worth copying too: faces (the face pictures shown
under People) and avatars (profile pictures).
Making a backup
- Right-click the LibrePhotos icon in the tray and choose More > Open data folder. (Without the icon:
type
%LOCALAPPDATA%\LibrePhotosinto the address bar of File Explorer and press Enter.) - Right-click the icon again and choose Quit LibrePhotos. Wait until it disappears: a copy of the database made while LibrePhotos runs can be incomplete.
- Copy the
dbfolder, with everything in it, to a safe place, for example an external drive: right-clickdb, choose Copy, open the target folder and press Ctrl+V. If there are files namedlibrephotos.sqlite3-walorlibrephotos.sqlite3-shmin it, they belong to the database and have to be copied too. - Open
protected_mediaand copysecret.keyto the same safe place, and thefacesandavatarsfolders if you want them. With 1.3.0 or older,secret.keyis inlogsinstead. - Start LibrePhotos again.
For the complete backup, copy the whole LibrePhotos folder in step 3 instead, and skip step 4.
New in 1.4.0 The automatic copies in db\backups are made on the same drive as the database,
so they help after a failed update, but not when the drive fails. See Automatic
backups.
How do I restore a backup?
- Quit LibrePhotos (tray: Quit LibrePhotos).
- Open the data folder (
%LOCALAPPDATA%\LibrePhotos) and rename thedbfolder todb-broken. - Copy the
dbfolder from your backup into the data folder. - Copy
secret.keyfrom your backup intoprotected_media, replacing the one there, and thefacesandavatarsfolders if you backed them up. When you go back to 1.3.0 or older, copysecret.keyintologsinstead, aslogs\secret.key: those releases look for it there. - Start the release you made the backup with (or a newer one, which updates the database again). Releases after 1.3.0 refuse to start on a database a newer release has updated, see Going back to an older release.
- When everything works, delete
db-broken.
To restore a complete backup, quit LibrePhotos, rename the LibrePhotos data folder to
LibrePhotos-broken, and copy your backup in its place.
To restore one of the automatic copies from db\backups instead, see Restoring a
backup on the Upgrading page.
How do I go back to the previous release?
The previous release is in librephotos-old next to the program folder, whether you updated from
LibrePhotos or by hand.
- Quit LibrePhotos.
- In
C:\Users\<you>\LibrePhotos-app(the installed version:%LOCALAPPDATA%\Programs\LibrePhotos), rename the newlibrephotosfolder tolibrephotos-new, andlibrephotos-oldback tolibrephotos. New in 1.7.0 Settings > Apps > Installed apps shows the version you went back to once it has started. - If the new release updated the database, put the database from before the update back:
your own backup, or the newest automatic copy in
db\backups, the one named after the new release (Restoring a backup). An older release cannot run on the database a newer one has updated: releases after 1.3.0 refuse to start and say so, 1.3.0 and older start but fail later. - When you go back to 1.3.0 or older and the new release moved the secret key, copy
protected_media\secret.keytologs\secret.key. - Start
librephotos.exein thelibrephotosfolder.
Changes made with the newer release (faces named, albums edited) are not in the old database. The next scan finds photos added since.
How do I remove LibrePhotos?
New in 1.7.0 The installed version:
- Quit LibrePhotos (tray: Quit LibrePhotos).
- Open Settings > Apps > Installed apps, click ... next to LibrePhotos and choose Uninstall (Windows 10: Settings > Apps, click LibrePhotos, then Uninstall).
- The uninstaller removes the program folder
%LOCALAPPDATA%\Programs\LibrePhotos(withlibrephotos-oldand any downloaded update in it), the Start menu and desktop shortcuts and the start at sign-in. Then it asks whether to delete your library in%LOCALAPPDATA%\LibrePhotostoo; it keeps it unless you click Yes, and it never deletes a data folder of your own (--data-dir): delete that yourself if you do not want it any more, as in step 3 below.
The zip installs nothing outside its folder: no Start menu entry, no service and no registry settings. To remove it:
- Quit LibrePhotos (tray: Quit LibrePhotos).
- Delete the program folder, for example
C:\Users\<you>\LibrePhotos-app(withlibrephotosand anylibrephotos-oldin it), and the shortcuts you made to it. - Only if you do not want to keep your library: delete the data folder,
%LOCALAPPDATA%\LibrePhotos(or the folder you gave with--data-dir). It holds the database, thumbnails, models and logs and can be many GB. Back it up first if you might want your albums, people and settings back: if you keep it, a later install picks up the library where you left it.
Your photos in your own folders are not touched by any of this.
For administrators
This part is for people who want to know how LibrePhotos for Windows works, or who run it in an unusual way.
What it is
A single folder, librephotos\, holding librephotos.exe and everything it needs: the API server,
the web frontend, the job workers, every machine learning sidecar, ExifTool and ffmpeg. The backend
is compiled with Nuitka, so no Python, Docker or database server has to be
installed. The database is SQLite, the same setup as the single container deployment
with its internal database.
ffmpeg is LibrePhotos' own minimal build, licensed under the GPL (version 2 or later). Its license and the list of
its components are in ffmpeg_bin\LICENSE.txt inside the folder, and its source code is on the release its wheel
came from; see The ffmpeg build.
It is meant for a library on your own PC, which others can also open from their phones in the same network (see Can I see my photos on my phone?). For a server that is always on, or for PostgreSQL, use one of the Docker deployments.
LibrePhotos keeps two things apart:
- The program folder: the
librephotosfolder withlibrephotos.exe, from the installer (%LOCALAPPDATA%\Programs\LibrePhotos\librephotos) or from the zip. An update replaces it. - The data folder,
%LOCALAPPDATA%\LibrePhotos: the database (users, albums, people, settings), thumbnails, the machine learning models and the logs. An update keeps it, and every copy of the program uses the same one.
Your photos stay in your own folders. LibrePhotos reads them there and never moves them into either folder.
Running it from the zip
The portable zip, librephotos-windows-x64.zip, runs without an installer. Every release since 1.2.0 carries it under Assets on the releases page.
New in 1.4.0 The same zip is also there as librephotos-<version>-windows-x64.zip, so a
downloaded file says which release it is, next to SHA256SUMS to check your
download. A new release becomes the latest one only once its Windows zip
is attached, a few hours after it is published; until then this link gives the previous release.
- Download
librephotos-windows-x64.zip. It is about 170 MB. To be sure it arrived complete, check it. - Open your Downloads folder, right-click
librephotos-windows-x64.zipand choose Extract All.... - In the box under Files will be extracted to this folder, replace the suggested path with a
folder in your user folder, for example
C:\Users\<you>\LibrePhotos-app(with your Windows user name instead of<you>), and click Extract. Choosing a folder says why. Windows creates the folder and puts alibrephotosfolder in it. - Open
C:\Users\<you>\LibrePhotos-app\librephotosand double-clicklibrephotos.exe. Windows may show Windows protected your PC, because the program is not signed: click More info, then Run anyway. - No window opens: LibrePhotos runs in the background with an icon in the notification area (the
tray, bottom right), and your browser opens
http://127.0.0.1:8000/. While the first start sets up the database, the page says "LibrePhotos is getting ready" and turns into LibrePhotos by itself (Not released yet (comes after 1.7.0) up to 1.7.0 it said "LibrePhotos is updating"). New in 1.4.0 Up to 1.3.0 the browser only opened after the first migrations. Windows 11 may put a new icon behind the ^ arrow (Show hidden icons) next to the clock; drag it from there onto the taskbar to keep it in view. - Say what you would like to do and type your name, see The first questions. Then choose the folder with your photos, see Choosing your photo folder. LibrePhotos starts to read it right away.
The models for face recognition, tagging, captions and semantic search are downloaded once during the first-time setup, into the data folder; that needs an internet connection. Not released yet (comes after 1.7.0) Your photos show up while the download runs. Up to 1.7.0 the first scan waited for it.
To start LibrePhotos from the desktop next time, right-click librephotos.exe and choose Show
more options → Send to → Desktop (create shortcut) (on Windows 10: Send to directly).
If it cannot start, the page in your browser or a message box says what happened; see If it does not start.
Choosing a folder
Put the program folder in your own user folder, for example C:\Users\<you>\LibrePhotos-app.
Windows lets you change files there without administrator rights, so an update is just unzipping,
and LibrePhotos can create the extra process names it needs next to librephotos.exe (see What
the processes are).
Avoid these places:
C:\Program Files: unzipping there, and every update after it, needs administrator rights, and every process shows up aslibrephotos.exe.- The Desktop, Documents, or another folder OneDrive backs up: the program files then sync to the cloud.
- The folder Extract All... suggests,
Downloads\librephotos-windows-x64: it works, but it is easily deleted when you tidy up Downloads, and you then end up with the program inDownloads\librephotos-windows-x64\librephotos\.
Whichever folder you choose, the library is the same: the data folder does not depend on where the program is.
Checking your download
New in 1.4.0 Every release lists the SHA-256 checksums of its zips (New in 1.7.0 and of
its installers) in a file called SHA256SUMS, under Assets next to the zip. If the checksum of your download is the same, the
file arrived complete and is the one the release build made. It does not say who made the build:
the program is not signed yet.
-
Download
SHA256SUMSfrom the same release as the zip, into the same folder (usually Downloads). -
Open that folder in File Explorer, click the address bar, type
powershelland press Enter. -
Paste these lines into the blue window and press Enter:
$zip = "librephotos-windows-x64.zip"$line = Select-String -Path SHA256SUMS -SimpleMatch -Pattern " $zip" | Select-Object -First 1(Get-FileHash $zip -Algorithm SHA256).Hash -eq $line.Line.Split(" ")[0]For the installer (
LibrePhotos-Setup.exe) or a file with the version in its name, put that name in the first line instead.
True means the download is fine. False means the file is incomplete or not the release's: delete
it and download it again. You can also compare by eye: Get-FileHash librephotos-windows-x64.zip
prints the Hash, and SHA256SUMS (open it with Notepad) has the same value in small letters
in front of the file name.
What the installer does
The installer holds the whole program and downloads nothing while it installs. To be sure it arrived complete, check it.
| What | Where |
|---|---|
| Program folder | %LOCALAPPDATA%\Programs\LibrePhotos\librephotos |
| Start menu entry | LibrePhotos (and the icon on the desktop, unless you unticked it) |
| Start when you sign in | Only if you chose it: a LibrePhotos entry in Settings > Apps > Startup |
| Entry in Settings > Apps > Installed apps | LibrePhotos, with its version and Uninstall |
| Data folder | Unchanged: %LOCALAPPDATA%\LibrePhotos, the same one the zip uses |
Running the installer of a newer release over an installed LibrePhotos updates it; quit LibrePhotos
first (the installer says so if it still runs, and waits when it is just closing). Not released yet (comes after 1.7.0) The LibrePhotos Viewer may
stay open; up to 1.7.0 the installer asked you to close it too. The release you had stays in
%LOCALAPPDATA%\Programs\LibrePhotos\librephotos-old, as after an update from
LibrePhotos. Usually you do not need to: the installed LibrePhotos updates
itself the same way the zip does.
Not released yet (comes after 1.7.0) An update leaves your choices as they are: a desktop icon you deleted does not come back, and LibrePhotos only opens by itself if it did before. The installer does not ask again.
If you used the zip before, see Moving to the installed version.
What an update does
What happens on your disk, next to the program folder (for example in C:\Users\<you>\LibrePhotos-app):
- The download goes into
librephotos-1.5.0.partialand is unpacked intolibrephotos-1.5.0. Nothing else changes until you restart; quitting LibrePhotos meanwhile is fine, and the next start knows the update is ready. - On Restart to update, the old
librephotosfolder is renamed tolibrephotos-oldandlibrephotos-1.5.0tolibrephotos. Shortcuts tolibrephotos\librephotos.exekeep working. The new release starts with the same options as the old one (--data-dir,--port, ...). librephotos-oldstays: it is the way back to the previous release. Thelibrephotos-oldof the update before is deleted, but only once the new release has started and answers, and only if it holds nothing but that release: anything you put into it yourself keeps it there. A log of each update is inupdate.login the logs folder (tray: More > Open logs).
LibrePhotos only downloads from the LibrePhotos release page on github.com, over HTTPS, and checks
the zip against the SHA256SUMS file of the same release, like Checking your
download does by hand: a damaged download is deleted and not installed,
and a release without SHA256SUMS cannot be installed this way. That proves the download is the
file the release has; it does not prove who made the release. The release files are not signed
yet: once the project has chosen how to sign them, LibrePhotos will also check a signature of
SHA256SUMS before installing.
LibrePhotos cannot update itself, and the card links How do I update by hand? instead, when it cannot replace its own folder:
- the program folder is somewhere it cannot write next to, such as
C:\Program Files(see Choosing a folder); - the data folder (
--data-dir) is inside the program folder, which an update replaces; - a photo folder is inside the program folder: the topmost photos folder (
--photos), a user's scan directory or upload folder, or a library folder. Keep your photos outside the program folder.
With the installed version (see Installing) the same happens in
%LOCALAPPDATA%\Programs\LibrePhotos: librephotos-1.8.0 next to librephotos, and librephotos-old
afterwards. The Start menu entry keeps starting librephotos\librephotos.exe, and Settings > Apps >
Installed apps shows the new version once it has started.
Installing without questions
For a script, a deployment tool or the Microsoft Store, the installer runs without any window:
LibrePhotos-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
| Option | What it does |
|---|---|
/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- | No window, no message box, no restart |
/TASKS="desktopicon,autostart" | The desktop icon and the start at sign-in. /TASKS="" is neither of them. Without this option a first installation puts the icon on the desktop and leaves the start at sign-in as it is, and an update leaves both as they are. autostart also turns the start on again when it was switched off in Settings > Apps > Startup. Up to 1.7.0 both were off without it |
/DATADIR="D:\LibrePhotos" | The shortcuts and the start at sign-in use this data folder (--data-dir); kept for later installs |
/PHOTOS="D:\" | The same for the only folder photos may come from (--photos) |
/LOG="C:\Temp\setup.log" | Writes a log of the installation |
It exits with 0 when LibrePhotos is installed. 7 means it did not install because LibrePhotos is
running: quit it and run the installer again. Not released yet (comes after 1.7.0) When LibrePhotos is just closing, the installer waits for it, up to a
minute. Uninstalling works the same way:
"%LOCALAPPDATA%\Programs\LibrePhotos\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART. It
keeps the data folder.
Starting it again
Only one LibrePhotos runs per data folder. Starting it again while it runs just opens the browser on the running one. New in 1.4.0 A start while the first one is still starting shows the notification "One moment, please", waits for it and then opens the browser; nothing else happens (up to 1.7.0 it said "LibrePhotos is already starting"). Once the first one shows its start-up page, a second start opens the browser on that page at once. Not released yet (comes after 1.7.0) A start that failed no longer blocks the next one while its message box is open; up to 1.7.0 the next start waited for that box, for up to ten minutes. Up to 1.3.0 a second start during the first one's database update started a second copy, which could show an error and stop the first copy's background services.
Not released yet (comes after 1.7.0) On macOS and Linux every background process of LibrePhotos holds the data folder too, not only the main one. When the main process was ended by force (Force Quit, a crash), a start right after it waits, with the same notification, until the old background processes have stopped (they notice within about half a minute) and then starts by itself. Up to 1.7.0 it started at once and updated the database while the old workers still wrote to it. On Windows the old background processes end together with the main one, as before.
Started from a terminal instead, it prints its log there and Ctrl-C stops it; --no-tray leaves the
icon out. Without a terminal that output goes to console.log in the logs folder. New in 1.4.0 The log of the
start before is kept as console.previous.log next to it, so a failed start can
still be explained after you tried again. For commands, see Running a command.
What quitting does
Only an admin sees Quit LibrePhotos in the account menu, and only in a browser on the PC LibrePhotos runs on. A phone or another computer cannot close it, and neither can a page that reaches LibrePhotos through a reverse proxy.
Quitting stops everything: the workers and the machine learning processes are children of
librephotos.exe and go down with it, also when it is ended from Task Manager.
Not released yet (comes after 1.7.0) Quitting lets the workers finish the photo they are on before it stops the machine learning processes, which can take up to half a minute while a job runs. The job goes on at the next start. In a terminal, a second Ctrl-C skips that wait. Up to 1.7.0 the machine learning processes stopped first, so quitting during Scan Faces could fail the job with "Face service unreachable".
What the processes are
LibrePhotos runs as a handful of processes, each under its own name in Task Manager's Details
tab, tasklist and Resource Monitor, so you can see which part is busy:
| Process | What it does |
|---|---|
librephotos.exe | The one you started: web server and API. Closing it stops all the others. |
librephotos-jobs.exe | Runs the background job queue (scans, thumbnails, machine learning jobs). |
librephotos-worker.exe | The job queue's workers and helpers; two workers by default. |
librephotos-thumbnails.exe | Thumbnails for RAW photos. |
librephotos-metadata.exe | Reads and writes EXIF/XMP metadata (ExifTool). |
librephotos-faces.exe | Face detection and recognition. |
librephotos-similarity.exe | The similar-photos index. |
librephotos-tags.exe | Automatic tags, and the image and text embeddings for semantic search. |
librephotos-captions.exe | Image captions. |
librephotos-ocr.exe | Text recognition, once an OCR model is selected. |
The extra names are hard links to librephotos.exe that are created next to it on the first start;
they take no additional disk space. If the folder is read-only they cannot be created, and every
process simply shows up as librephotos.exe. The machine learning processes only listen on
127.0.0.1.
Where things go
| What | Where |
|---|---|
| Database | db in the data folder, %LOCALAPPDATA%\LibrePhotos\db (--data-dir to move the whole data folder; keep it on a local drive, not a network drive, see A damaged SQLite database) |
| Database backups made before an update | New in 1.4.0 %LOCALAPPDATA%\LibrePhotos\db\backups (see Upgrading) |
| Secret key | %LOCALAPPDATA%\LibrePhotos\protected_media\secret.key (1.3.0 and older: logs\secret.key, see below) |
| Thumbnails, profile pictures, machine learning models | %LOCALAPPDATA%\LibrePhotos\protected_media |
| Logs | %LOCALAPPDATA%\LibrePhotos\logs (tray: More > Open logs) |
| Not released yet (comes after 1.7.0) The port it uses when 8000 is taken | %LOCALAPPDATA%\LibrePhotos\web-port.json (see Using another port) |
| Not released yet (comes after 1.7.0) What opens LibrePhotos in your browser without a password; new at every start | %LOCALAPPDATA%\LibrePhotos\open.key (see Without a password) |
| Photos | Stay where they are, see Choosing your photo folder (--photos D:\Pictures allows only that folder) |
To open the data folder, choose More > Open data folder in the tray menu, or type
%LOCALAPPDATA%\LibrePhotos into the address bar of File Explorer and press Enter.
Options
librephotos.exe --help
librephotos.exe run --port 8080 --no-browser
librephotos.exe --data-dir D:\LibrePhotos --photos D:\Pictures
librephotos.exe --data-dir D:\LibrePhotos run --port 8080
librephotos.exe manage createadmin -u admin admin@example.com
librephotos.exe manage <any manage.py command>
--data-dir and --photos belong to librephotos.exe itself, so they come before run or
manage: librephotos.exe run --data-dir D:\LibrePhotos is refused, and after manage they are
handed to the command, which does not know them.
Two background workers run the scan, thumbnail and machine learning jobs. That suits a single-user PC;
set WORKER_CONCURRENCY before starting librephotos.exe to use more (each worker is a full copy of
the backend, a few hundred MB of RAM).
The environment variables of the Docker images work too, set in the
console before starting librephotos.exe; the data directory options above only fill in BASE_DATA,
BASE_LOGS when they are not set. PHOTOS is the same as --photos. A default SECRET_KEY is generated and kept in
protected_media\secret.key in the data directory (releases after 1.3.0; 1.3.0 and older kept it in
the logs directory, and a newer release moves it on its first start).
Folders LibrePhotos does not offer
Not offered are folders on the system drive outside your user folder (C:\Photos), the folders of
Windows, AppData and the data folder of LibrePhotos itself. Use --photos to allow such a folder; then
only it and what is in it can be chosen.
Running a command
Some release notes ask you to run a command once after an update. librephotos.exe is a Windows
program without a window of its own, so cmd and PowerShell do not wait for it; start /wait makes
cmd wait and keeps the output in order:
-
Start the new release once, as usual, so that it updates the database. It may keep running while the command runs.
-
Press Windows key + R, type
cmdand press Enter. -
Go to the program folder (the quotes matter if the path has spaces):
cd /d "C:\Users\<you>\LibrePhotos-app\librephotos" -
Run the command, for example the thumbnail cleanup from Upgrading:
start /wait librephotos.exe manage strip_thumbnail_metadataWith another data folder, put
--data-dirbeforemanage:start /wait librephotos.exe --data-dir D:\LibrePhotos manage strip_thumbnail_metadata
Piping works as well: librephotos.exe manage strip_thumbnail_metadata | more.
Using another port
LibrePhotos shows its pages on port 8000, so its address is http://127.0.0.1:8000/.
Not released yet (comes after 1.7.0) If another program already uses that port (a development server, another
self-hosted tool), LibrePhotos takes a free port by itself:
- It tries 8020 to 8039 first, then 18020 to 18039 and 28020 to 28039. The browser, the tray icon's Open my photos and a second start all open the right address.
- The first time, a notification says "LibrePhotos has a new address". A bookmark with port 8000 opens the other program while that one runs; save a new bookmark.
- The port is written to
web-port.jsonin the data folder, and LibrePhotos uses it again whenever 8000 is taken. Once 8000 is free again, LibrePhotos answers on 8000 and on that port, so both bookmarks work. Delete the file while LibrePhotos is closed to forget the port.
Up to 1.7.0, LibrePhotos did not start while another program used port 8000.
If you want one fixed port, choose it yourself. LibrePhotos never replaces a port you gave: when it is
taken, LibrePhotos does not start, and the message names the program that uses it and its process ID.
With --host 0.0.0.0 and no --port it always uses 8000, because other devices, such as the phone app,
have that address.
-
Right-click
librephotos.exeand choose Show more options → Create shortcut (on Windows 10: Create shortcut directly). -
Right-click the new shortcut, choose Properties, and add
run --port 8080to the end of Target, after the closing quote:"C:\Users\<you>\LibrePhotos-app\librephotos\librephotos.exe" run --port 8080 -
Start LibrePhotos with that shortcut from now on. The browser and the tray icon's Open my photos then use port 8080.
Any free port above 1024 works. Windows keeps some port ranges for Hyper-V, WSL or Docker; if the
message says LibrePhotos cannot use the port, pick another one (netsh interface ipv4 show excludedportrange protocol=tcp lists the reserved ranges).
The background services use ports 8002 to 8012 on 127.0.0.1. If another program holds one of
them, LibrePhotos does not start: the page says "Another program is in the way", and console.log in
the logs folder lists each blocked port with the program holding it, for example Port 8010 (exif): python.exe, process ID 4321. Close that
program, or move the service with its SIDECAR_PORT_<NAME> variable (the name in brackets, see
Environment variables). Environment
variables do not fit in a shortcut, so start LibrePhotos from a small .cmd file next to it
instead, for example LibrePhotos.cmd:
@echo off
set SIDECAR_PORT_EXIF=18010
start "" "%~dp0librephotos.exe"
New in 1.4.0 Up to 1.3.0, LibrePhotos started anyway, and the service failed for every photo
of the next scan with the reason only in console.log.
Building it yourself
cd apps\backend
py -3.14 -m venv .venv
.\.venv\Scripts\pip install -r requirements.txt -r requirements.standalone.txt
.\.venv\Scripts\pip install --no-deps -r requirements.nodeps.txt
.\.venv\Scripts\python scripts\build_standalone.py --zip
This builds the frontend (Node 24 and Yarn on PATH; --skip-frontend reuses apps/frontend/dist),
collects the static files and compiles the backend; Nuitka needs Visual Studio's C++ build tools and
downloads the rest itself. Expect the first build to take well over an hour, later ones are much
faster thanks to Nuitka's cache. The result lands in apps\backend\build\standalone\librephotos\.
With --zip, the zip and SHA256SUMS are next to that folder.
To check a build the way the release workflow does, run the zip on a fresh data folder: the script
starts it on free ports, creates an admin, checks every background service that needs no model,
scans three sample photos, asks it to show one of them in File Explorer Not released yet (comes after 1.7.0), then ends librephotos.exe and fails if any of its processes is left.
Not released yet (comes after 1.7.0) It then starts it a second time in German and quits it the way the account menu does.
.\.venv\Scripts\python scripts\smoke_standalone.py build\standalone\librephotos-windows-x64.zip
Not released yet (comes after 1.7.0) With --explorer it shows each sample photo three times and fails unless File Explorer
selects it. Run that on your own desktop: on a GitHub runner the script found no File Explorer selection to read, so there it only checks
that the program says it showed the file.
New in 1.7.0 The installer is built from that folder with Inno Setup 6
(ISCC.exe in its usual place, or set ISCC); it lands next to the zip, and --checksums adds it
to SHA256SUMS:
.\.venv\Scripts\python scripts\build_installer.py --checksums
How the installer, its updates and the move from the zip fit together, and what the Microsoft Store needs, is in The Windows installer.