Sync Apple Photos to Immich, Metadata and All
Sync your Apple Photos library to Immich, with all of your metadata.
MirrorImmich reads titles, descriptions, keywords / tags, GPS locations, albums and favorites directly from the Apple macOS Photos database,
and creates a directory with symlinks to your photos and their metadata in .xmp sidecar files.
Use that directory as an Immich external library. This is the safest way to continuously sync Apple Photos with Immich, since it preserves all metadata and avoids any potential issues with Immich’s internal database.
If you find MirrorImmich useful, please consider sponsoring it so we can dedicate more time to it. Need a feature that isn’t there yet? You can sponsor new features as well.
Features
Immich External Library
Creates a directory structure with symlinks to your photos, ready to use as an Immich external library.
Titles, Descriptions and Tags
Exports titles, descriptions and keywords / tags. Titles and descriptions are combined, since Immich has only one description field.
GPS Location
Keeps the location of every photo and video, so they show up on the Immich map.
XMP Sidecar Files
Writes all metadata to standard .xmp sidecar files next to each photo.
Edited Photos
Exports the edited version of photos that you edited in Apple Photos.
Albums and Favorites
Creates Immich albums from your Apple Photos albums, and marks your favorites.
Large Libraries
Processes photos in batches, so even very large libraries sync on machines with limited memory.
Any Immich Version
Fully supports Immich 3.x and later, while staying compatible with earlier versions.
MirrorImmich vs. Immich Go, PhotoSync, osxphotos, etc.
There are existing solutions for uploading photos to Immich. However, none of those solutions access Apple macOS Photos internal database to extract metadata that was entered into Apple Photos on the Mac. All other solutions extract data from the metadata from the photo and video files themselves. Unfortunately that data is incomplete and does not include manually entered data in Apple Photos on the Mac. There are some newer solutions that do access Apple Photos database, but they are either difficult to use, do not support Immich specifically, or do not support syncing favorites and albums.
Screenshots
Installation
Docker Compose is the recommended installation method.
-
Download the latest release
-
Unzip the downloaded file.
-
Run
docker compose up -dto start the container. -
Browse http://localhost:9090 to access MirrorImmich.
You can also create .env file in the same directory as docker compose file,
with the following variables:
IMMICH_API_URL=https://my.immich.instance
IMMICH_API_KEY=<my_immich_api_key>
# Optional: set batch size for processing photos (default is 1000)
# PHOTOS_BATCH_SIZE=1000
# Override default photos library location and names if needed
# PICTURES_DIRECTORY=${HOME}/Pictures
# PHOTOS_LIBRARY_NAME=Photos Library
# EXTRACTED_PHOTOS_NAME=extracted-photos
# Optional: set maximum memory heap size (default is 512m)
# MAX_HEAP_SIZE=2g
Installation Notes
-
Docker needs to have "full disk access" to be able to read Photos library
-
New releases are uploaded on Docker Hub and release date in this repository does not indicate latest update to the Docker image.
Check Docker Hub for the latest image.
Frequently Asked Questions
-
Does MirrorImmich change my Apple Photos library?
No. MirrorImmich reads the Apple Photos database and writes symlinks and
.xmpsidecar files to a separate directory. -
Which versions of Immich are supported?
Immich 3.x and later, as well as earlier versions of Immich.
-
Why does Docker need full disk access?
To read the Apple Photos library, which macOS protects.
-
My photo library is very large. Will it work?
Yes. MirrorImmich processes photos in batches (1,000 by default). You can change the batch size with
PHOTOS_BATCH_SIZE, and the memory limit (512 MB by default) withMAX_HEAP_SIZEin the.envfile. -
How is it different from Immich Go, PhotoSync or osxphotos?
Those tools read metadata from the photo files, which doesn’t include what you entered in Apple Photos on the Mac. See MirrorImmich vs. Immich Go, PhotoSync, osxphotos, etc.
-
Can I request a new feature?
Yes. Open an issue on GitHub, or sponsor the feature to get it built sooner.
News
-
Jul 5, 2026: MirrorImmich now fully supports Immich 3.x or later, as well as retaining compatibility with earlier versions of Immich
-
Apr 19, 2026: Memory requirements are significantly reduced by processing photos in batches. This allows processing of large libraries on machines with limited memory. See Issue #16 for details.