Skip to main content

LibrePhotos for Mac

Download

New in 1.7.0 Download LibrePhotos for Mac

For Macs with an Apple chip (M1 or newer) and macOS 14 Sonoma or newer. Which chip does my Mac have?

What is it?​

LibrePhotos for Mac is an app called LibrePhotos Server. It keeps your photo library on your Mac. 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 Mac, and LibrePhotos does not upload them. The app itself has no window and no icon in the Dock. It has a small icon in the menu bar at the top 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?​

  1. Download LibrePhotos-Server-macos-arm64.dmg (see above) and open it.
  2. Drag LibrePhotos Server onto the Applications folder in the window that opens.
  3. Eject the disk image: click the eject button next to LibrePhotos Server in the Finder sidebar.
  4. Open LibrePhotos Server from Applications or Launchpad. The first time, see Opening it the first time.

To find it again quickly, drag LibrePhotos Server from the Applications folder into the Dock.

If you are not an administrator of your Mac, drag the app into the Applications folder in your home folder (~/Applications) instead. LibrePhotos can then update itself, which it cannot do in the main Applications folder without an administrator.

Opening it the first time​

The first time, macOS asks whether you want to open an app from the internet. Click Open. Updates do not ask again.

The app is signed by the LibrePhotos project and checked by Apple, so macOS opens it like any other app you downloaded.

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".

The page LibrePhotos shows at its first start: LibrePhotos is getting ready. This is the first start. It takes a minute or two. LibrePhotos then opens here by itself.

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:

The first question: What would you like to do with your photos? Find my photos again, See them on my phone too, or Share them with my family

  1. What you would like to do with your photos.
  2. Your name. On your own Mac you need no password, see Without a password.
  3. 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. After that you can type what you are looking for into the search box at the top:

Search results for mountain: three photos with mountains in them, found by what is in them, with the Mountain tag above themSearch results for mountain: three photos with mountains in them, found by what is in them, with the Mountain tag above them

LibrePhotos runs in the background. Its icon, the LibrePhotos logo, is in the menu bar at the top right of the screen. Click it to see its menu:

  • At the top, in grey, what LibrePhotos is doing, for example LibrePhotos is running.
  • Open my photos opens LibrePhotos in your browser.
  • Start when the computer starts, see Should LibrePhotos start with my Mac?
  • Help opens this page.
  • More has Check for updates, Open data folder and Open logs.
  • Quit LibrePhotos.

When there is an update, the menu also has an item for it, see How do I update?

Not released yet (comes after 1.7.0) Up to 1.7.0 Open my photos was called Open LibrePhotos, Start when the computer starts was called Open at Login, there was no Help, and the items of More were in the menu itself.

How do I quit LibrePhotos?​

Click the LibrePhotos icon in the menu bar and choose Quit LibrePhotos.

Not released yet (comes after 1.7.0) You can also quit it in your browser. Click the round button with your initials at the top right of LibrePhotos and choose Quit LibrePhotos:

The account menu, opened from the round button with your initials at the top right: Profile, Settings, Admin area, Log out and, in the Windows and Mac programs, Quit LibrePhotosThe account menu, opened from the round button with your initials at the top right: Profile, Settings, Admin area, Log out and, in the Windows and Mac programs, Quit LibrePhotos

The page then says LibrePhotos is closed and how to open it 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 Mac.

Closing the browser does not quit LibrePhotos. Logging out of your Mac does.

Quitting can take up to half a minute while LibrePhotos is working on a photo. The menu bar icon says Closing... until it is done. 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.

How do I open it again?​

Open LibrePhotos Server from Applications, Launchpad, Spotlight or the Dock. It opens your photos in the browser.

Not released yet (comes after 1.7.0) This also works while LibrePhotos is already open, or while it starts. When you open it while it quits, it finishes quitting and then starts again. Up to 1.7.0 nothing happened when you opened the running app again.

Not released yet (comes after 1.7.0) When you open a bookmark of LibrePhotos while it is closed, the page says LibrePhotos is closed and how to open it. It goes on by itself once LibrePhotos runs again. This works in a browser on this Mac in which you have opened LibrePhotos before. Any other browser shows its own error page.

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, your Desktop, Documents and Downloads folders, and the other folders of your home folder. Click the folder with your photos. The folders inside it are included. Up to 1.7.0 only folders in your home folder could be chosen.

You can choose another folder later in Admin area > Users. That also works while the drive with the old folder is not connected.

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 Mac. 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 name, such as "Photos 1", LibrePhotos switches to it by itself or asks you once: Your photos are now on Photos 1, with Use this folder. See Photos on an external drive.

Why does macOS ask whether LibrePhotos may open a folder?​

macOS asks before an app reads your Desktop, Documents and Downloads folders, external drives or network drives. Click Allow. Other folders, such as Pictures, need no question. Not released yet (comes after 1.7.0) macOS asks when you open or choose such a folder in the list. Up to 1.7.0 it asked at the first scan.

If you did not allow it, LibrePhotos says that macOS does not let it read the folder. Open System Settings > Privacy & Security > Files and Folders and turn the folder on for LibrePhotos Server.

Should LibrePhotos start with my Mac?​

That is up to you. It is off unless you turn it on. Not released yet (comes after 1.7.0) When you open LibrePhotos for the second time and it has photos, it asks you once: Open LibrePhotos by itself when the computer starts?

You can change it at any time:

  • in the menu bar menu, with Start when the computer starts, or
  • in the Admin area under Site settings, with Open LibrePhotos by itself when this computer starts.

When it starts with your Mac, it does not open the browser. Open LibrePhotos Server when you want to see your photos. Up to 1.7.0 the menu item was called Open at Login and was the only way.

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 saysWhat to do
LibrePhotos could not startOpen LibrePhotos Server again. The same page then goes on by itself. If it says this again, restart the Mac and try once more.
LibrePhotos is not open any moreIt was closed, or it stopped by itself. Open LibrePhotos Server again.
There is not enough free space on this computerDelete things you no longer need, empty the Trash, and open LibrePhotos Server again.
Another program is in the wayRestart the Mac and open LibrePhotos Server before other programs. If it stays, see Using another port.

If no page is open, a message says the same.

If it still does not start, the reason is in a file named console.log:

  1. In the Finder, choose Go > Go to Folder... in the menu bar at the top.
  2. Paste ~/Library/Application Support/LibrePhotos/logs and press Return.
  3. Open console.log. The reason is near the end. If you have opened LibrePhotos again since then, it is in console.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.

Can I see my photos on my phone?​

Not released yet (comes after 1.7.0) LibrePhotos only opens on this Mac until you let others in. For a phone, a tablet or another computer in your home network:

  1. Open Account menu > Admin area on this Mac. Under Phone and other devices, click Show how.
  2. Choose a password if you have none, and click Open it for other devices. If macOS asks whether LibrePhotos Server may accept incoming network connections, click Allow.
  3. 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 with Start when the computer starts. Phone and other devices says what to do when the phone cannot connect, how to close it again and what to do when you forgot your password.

Up to 1.7.0 this needed run --host 0.0.0.0 in a Terminal (see Running a command), and Open at Login ignored it. That command still works.

How do I update?​

An update replaces the app and keeps your library: your photos, albums, people, users and settings are all still there afterwards.

Updating from LibrePhotos​

When a newer version is out, the Admin area shows an Update available card, and the menu bar menu has an update item.

  1. Click Download update on the card, or choose Download LibrePhotos 1.8.0 in the menu bar menu. LibrePhotos downloads the new version while it keeps running.
  2. When it is ready, click Restart to update, on the card or in the menu. If LibrePhotos is still working on your photos, it asks first. That work goes on after the restart.
  3. LibrePhotos quits, puts the new app in place and opens again. The page in your browser reloads by itself.

The update is not possible, and the card links these steps instead, when LibrePhotos cannot write next to the app (a standard user and /Applications), or when the data folder or a photo folder is inside the app. What an update does next to the app is in The files of an update.

Updating by hand​

  1. Quit LibrePhotos (menu bar: Quit LibrePhotos).
  2. Download the new disk image and drag LibrePhotos Server onto Applications again; choose Replace.
  3. Open it. A version that changes the database backs it up into db/backups in the data folder first.

Going back to the previous version​

  1. Quit LibrePhotos.
  2. In /Applications, rename LibrePhotos Server.app to LibrePhotos Server new.app and LibrePhotos Server.app-old to LibrePhotos Server.app.
  3. If the new version updated the database, put the copy from before the update back: the newest one in db/backups in the data folder, as Restoring a backup shows.
  4. Open LibrePhotos Server.

How do I back up my library?​

Your photos stay in your own folders: back them up as you always do. What LibrePhotos knows about them, such as albums, names of people and favorites, is in its data folder. Time Machine backs it up with the rest of your home folder.

For a copy of your own:

  1. Quit LibrePhotos.
  2. In the Finder, choose Go > Go to Folder..., paste ~/Library/Application Support and press Return.
  3. Copy the folder LibrePhotos, for example to an external drive.

The db folder and protected_media/secret.key in it are the parts you cannot get back by reading your photos again.

How do I remove LibrePhotos?​

  1. Quit LibrePhotos (menu bar: Quit LibrePhotos).
  2. If Start when the computer starts has a tick in the menu bar menu, turn it off first.
  3. Open the Applications folder and drag LibrePhotos Server to the Trash. If there is a LibrePhotos Server.app-old next to it, drag it to the Trash too.

Your photos in your own folders are not touched. Your library stays in the data folder, so LibrePhotos finds it again when you install it later. To delete the library too: in the Finder, choose Go > Go to Folder..., paste ~/Library/Application Support and press Return, then drag the folder LibrePhotos to the Trash.

There is also an uninstaller for the Terminal.

For administrators​

The rest of this page is technical. You do not need it to use LibrePhotos.

What is in the app​

LibrePhotos Server.app is the same program as the Windows app: the API server, the web frontend, the job workers, every machine learning service, ExifTool and ffmpeg, compiled with Nuitka, so no Python, Docker or database server has to be installed. The database is SQLite, as in the single container deployment. It answers at http://127.0.0.1:8000/, or at another address when another program uses that one.

It is a server: other devices on your network, such as a phone with a mobile app, can use it too once you let them in.

ExifTool runs on the Perl that macOS ships. ffmpeg is LibrePhotos' own minimal build, licensed under the GPL (version 2 or later), the same build the Windows app has.

The services that need no model choice run from the start, as on Windows: metadata (ExifTool), thumbnails, similar photos and the tags, search and similarity model. Faces and captions are on by default too. Text recognition starts once you choose a model for it in the Admin area.

Not released yet (comes after 1.7.0) The menu bar, the notifications, the message boxes and the pages LibrePhotos shows while it starts or after a failed start use the language of the Mac, 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, and 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.

Where things go​

WhatWhere
The app/Applications/LibrePhotos Server.app
The database, thumbnails, models, secret key~/Library/Application Support/LibrePhotos
Logs (console.log, update.log, ...)~/Library/Application Support/LibrePhotos/logs
Not released yet (comes after 1.7.0) The port it uses when 8000 is takenweb-port.json in the data folder (see Using another port)
Not released yet (comes after 1.7.0) What opens LibrePhotos in your browser without a password; new at every startopen.key in the data folder (see Without a password)
Start when the computer starts~/Library/LaunchAgents/com.librephotos.server.plist
Your photoswhere they are; LibrePhotos does not move or copy them

The app never writes into its own bundle, so its code signature stays valid. --data-dir chooses another data folder, for example on an external drive (see Running a command).

Start when the computer starts is a launch agent, ~/Library/LaunchAgents/com.librephotos.server.plist, which macOS lists under System Settings > General > Login Items & Extensions as LibrePhotos Server. It starts the app with the data folder it runs with. If LibrePhotos is already open when the login item runs, macOS counts that as opening it again, so the browser may open.

Running a command​

The program inside the app takes the same options as librephotos.exe on Windows:

cd "/Applications/LibrePhotos Server.app/Contents/MacOS"
./"LibrePhotos Server" --help
./"LibrePhotos Server" manage createadmin admin admin@example.com
./"LibrePhotos Server" --data-dir "/Volumes/Photos/LibrePhotos" run
./"LibrePhotos Server" start-at-login on

Quit the app from the menu bar first when you start it by hand, or use another data folder. manage <command> runs any manage.py command against the same data folder; options such as --data-dir come before manage. start-at-login takes on, off or status.

Not offered in the list of folders are the folders of macOS, ~/Library and the data folder of LibrePhotos itself. A folder in ~/Library can still be typed, for example a cloud drive in ~/Library/CloudStorage. To allow only one folder and what is in it, start the app with --photos, for example --photos "/Volumes/Photos". Up to 1.7.0 only folders in the home folder could be chosen without --photos.

Using another port​

LibrePhotos shows its pages on port 8000. Not released yet (comes after 1.7.0) When another program uses that port, LibrePhotos takes a free one by itself, opens the right address, and keeps that port for the next time. Once port 8000 is free again, LibrePhotos answers on both, so every bookmark you saved works. How the port is chosen is the same as on Windows. Up to 1.7.0 LibrePhotos did not start while another program used port 8000.

To choose the port yourself, for example for a bookmark that must never change:

"/Applications/LibrePhotos Server.app/Contents/MacOS/LibrePhotos Server" run --port 8080

LibrePhotos never replaces a port you gave: when it is taken, LibrePhotos says so and does not start. With --host 0.0.0.0 and no --port, it always uses 8000, because the other devices have that address.

The services have ports of their own on this Mac, from 8001 up; the SIDECAR_PORT_* variables in Environment variables move them.

With Homebrew​

The repository has a Homebrew cask, deploy/homebrew/librephotos-server.rb. It installs the disk image into /Applications, and brew uninstall --cask librephotos-server removes the app, its older copy and the login item, while --zap also deletes the library. It is not published in a tap yet, so install it from the file. The cask says auto_updates true: the app updates itself, and brew upgrade leaves it alone.

The files of an update​

LibrePhotos downloads the release from GitHub and checks it against the release's SHA256SUMS-macos-arm64. Next to the app (in /Applications, or wherever you put it):

  • The download goes into LibrePhotos Server.app-1.8.0.partial and is unpacked into LibrePhotos Server.app-1.8.0, with a small LibrePhotos Server.app-1.8.0.librephotos-update.json next to it that says it was checked. Neither is an app to macOS, so neither shows up in Launchpad. Not released yet (comes after 1.7.0) The .librephotos-update.json file is written before the unpacked app gets its name, so quitting LibrePhotos at that moment no longer leaves a LibrePhotos Server.app-1.8.0 that every later try refused as "in the way" until you deleted it by hand (up to 1.7.0).
  • On Restart to update, LibrePhotos Server.app is renamed to LibrePhotos Server.app-old and the new copy to LibrePhotos Server.app. The Dock, Launchpad and the login item keep starting the same path.
  • LibrePhotos Server.app-old stays as the way back to the previous version. The one from the update before is deleted once the new release answers, but only when it holds nothing but that release. Each update writes update.log in the logs folder.

The uninstaller​

The app has an uninstaller that quits LibrePhotos, removes the app, its older copies next to it and the login item, and keeps your library:

"/Applications/LibrePhotos Server.app/Contents/Resources/uninstall.sh"

Add --delete-data to delete the library in ~/Library/Application Support/LibrePhotos too.

Checking your download​

Every release carries the disk image as LibrePhotos-Server-macos-arm64.dmg and as LibrePhotos-Server-<version>-macos-arm64.dmg, the zip the built-in updater downloads (librephotos-macos-arm64.zip) and SHA256SUMS-macos-arm64. In Terminal, in the folder with the download and SHA256SUMS-macos-arm64 from the same release:

shasum -a 256 -c SHA256SUMS-macos-arm64 --ignore-missing

OK after the file name means it is the file the release has.

Coming from Docker​

There is no import from a Docker installation. The standard Docker setup keeps its library in PostgreSQL, the Mac app in SQLite, and the database stores the photo paths as the container sees them (/data/...), not as your Mac does. You can keep running LibrePhotos in Docker Desktop, or start with an empty library in the Mac app and scan the same folders again: photos, dates, places, things and faces come back from the files, but albums, face names, favorites and other edits made in LibrePhotos do not.

Intel Macs and the Mac App Store​

There is no build for Intel Macs: ONNX Runtime, which runs the machine learning models, and the RAW decoder and cryptography packages LibrePhotos uses no longer publish packages for them.

LibrePhotos Server is not in the Mac App Store, and is not planned to be. Apps there must run in Apple's sandbox, which only lets an app read folders you pick in its own dialog each time, cannot update themselves, and may not download the machine learning models after installing. The ffmpeg build LibrePhotos ships is licensed under the GPL, which the App Store's terms do not allow.

Building it yourself​

See the developer page.