https://github.com/masipcat/photoprism-to-immich
https://github.com/masipcat/photoprism-to-immich
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/masipcat/photoprism-to-immich
- Owner: masipcat
- License: mit
- Created: 2024-06-09T15:46:23.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-09T15:48:55.000Z (12 months ago)
- Last Synced: 2025-03-25T05:11:59.153Z (2 months ago)
- Language: Python
- Homepage: https://gitlab.masip.cat/masipcat/photoprism-to-immich
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PhotoPrism to Immich migrator
This tool migrates albums and favorites from a PhotoPrism instance to a Immich instance. Photos and videos must be already migrated to Immich.
## How it works
The script retrieves the list of assets from Immich and matches them with PhotoPrism files, using the sha1 checksum of the file computed by both softwares.
## Installation
```sh
cd photoprism-to-immich
pip install -r requirements.txt
```## Usage
```
Usage: migrate.py [OPTIONS] COMMAND [ARGS]...Options:
--dry-run
--im-url TEXT [required]
--im-apikey TEXT [required]
--pp-mysql-host TEXT [required]
--pp-mysql-user TEXT [required]
--pp-mysql-pswd TEXT [required]
--pp-mysql-db TEXT [required]
--help Show this message and exit.Commands:
migrate-albums
migrate-favorites
```## Example command to migrate albums
```sh
python migrate.py \
--dry-run \
--im-url https://immich.example.com \
--im-apikey API_KEY \
--pp-mysql-host 127.0.0.1 \
--pp-mysql-user photoprism \
--pp-mysql-pswd '' \
--pp-mysql-db photoprism \
migrate-albums
```