Migration tool for migrating album and favorites data from photoprism to immich
Project description
Photoprism to Immich migrator
This tool can migrate albums and favorites from Photoprism to Immich. It does not migrate you photos.
Prerequisites
The tool will only work if you keep the same file structure in immich that you already had in photoprism.
This is the case if you take the original
folder from photoprism and use it in immich as external library.
How it works
Migrate favorites
- The tool fetches all photos with a
favorite
tag from your photoprism instance - For each photo, it retrieves the original
filename
and its respectivepath
- It connects to immich, tries to find the photo by
filename
and validates potential candidates on the immich side by comparing the filepath
- If a match was found, it marks the photo on immich as
favorite
Migrate album
- The tool fetches all photos of a certain
album
from your photoprism instance - For each photo, it retrieves the original
filename
and its respectivepath
- It connects to immich, tries to find the photo by
filename
and validates potential candidates on the immich side by comparing the filepath
- If a match was found, it creates a new
album
in immich and adds the matched photos
Installation
pip install ppim-migrator
Configuration
Create a config.yaml
file in the working directory where you want to run the command.
photoprism:
base_url: https://photoprism.example.com
username:
password:
immich:
base_url: https://immich.example.com
api_key:
Usage
Migrate all favorites from photoprism to immich
python -m ppim-migrator migrate-favorites
Migrate a certain album from photoprism to immich
To get an album-id
just open the album in photoprism. The id is part of the url.
Example:
- Url, when opening the album:
https://photoprism.example.com/library/albums/aqrcixa2uf1q45iq/view
Thealbum-id
would beaqrcixa2uf1q45iq
python -m ppim-migrator migrate-album <album-id-here>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ppim_migrator-0.0.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for ppim_migrator-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01bb5566d89b24643234a090ec58a91ebb7292497d3b406a7227a9ca84e8d1c7 |
|
MD5 | 8078d5fa03cd2c8930355d66568aff58 |
|
BLAKE2b-256 | 4574a6147f8a85347b6108b12e46de21bcd7fbbb5b71ee51b4c5f253af9a46c5 |