Tool to migrate Photoprism library and albums to Immich
Project description
photoprism2immich
photoprism2immich
is a tool to migrate media libraries and albums from Photoprism to Immich.
The tools scan the original photoprism files folders and upload all the images and videos on Immich using API calls. It also query Photoprism API to retrieve albums photo and create the albums on Immich.
It has a built-in feature for skipping already uploaded files and albums in case something goes wrong during upload, avoiding duplicates.
The migrate-album
and migrate-favorites
features draws heavy inspiration from ppim-migrator by user v411e
Usage
(photoprism-env) root@pve:/localhost# photoprism2immich -h
usage: photoprism2immich [-h] {migrate-library,migrate-album,migrate-favorites} ...
Tool to manage Photoprism library with Immich.
positional arguments:
{migrate-library,migrate-album,migrate-favorites}
Sub-command to execute
migrate-library Migrate Photoprism library and albums to Immich.
migrate-album Migrate a specific album to Immich.
migrate-favorites Migrate favorite photos to Immich.
options:
-h, --help show this help message and exit
migrate-library help:
(photoprism-env) root@pve:/localhost# photoprism2immich migrate-library -h
usage: photoprism2immich migrate-library [-h] --apikey APIKEY --baseapiurl BASEAPIURL --originals ORIGINALS [-l LOG]
options:
-h, --help show this help message and exit
--apikey APIKEY API key for Immich server
--baseapiurl BASEAPIURL
Base URL of the Immich server
--originals ORIGINALS
Path to the originals folder
-l LOG, --log LOG Path to the log file
migrate-album help:
(photoprism-env) root@pve:/localhost# photoprism2immich migrate-album -h
usage: photoprism2immich migrate-album [-h] --photoprism_url PHOTOPRISM_URL --photoprism_user PHOTOPRISM_USER --photoprism_password PHOTOPRISM_PASSWORD
--immich_url IMMICH_URL --immich_api IMMICH_API [--album ALBUM] [-l LOG]
options:
-h, --help show this help message and exit
--photoprism_url PHOTOPRISM_URL
URL of the Photoprism server
--photoprism_user PHOTOPRISM_USER
Username for Photoprism
--photoprism_password PHOTOPRISM_PASSWORD
Password for Photoprism
--immich_url IMMICH_URL
Base URL of the Immich server
--immich_api IMMICH_API
API key for Immich server
--album ALBUM Specific album to migrate
-l LOG, --log LOG Path to the log file
Installation
pip install photoprism2immich
Usage
Example command for migrating library:
photoprism2immich migrate-library --apikey "aaaaaaaaaaaaaa" --baseapiurl "http://immich.local:2283/api" --originals "/photoprism-originals"
IMPORTANT: if you want to import albums and favorites, first change the default Immich path library from /YYYY/MM/DD to /YYYY/MM
Example command for migrating ALL albums (if you want to migrate one album only specify here):
photoprism2immich migrate-album --photoprism_url="http://photoprism.local:20800/" --photoprism_user="user" --photoprism_password="password" --immich_url="http://immich.local:2283" --immich_api="aaaaaaaaaaaaaa" --album ALL
Example command for migrating favorites:
photoprism2immich migrate-favorites --photoprism_url="http://photoprism.local:20800/" --photoprism_user="user" --photoprism_password="password" --immich_url="http://immich.local:2283" --immich_api="aaaaaaaaaaaaaa"
Build yourself
Clone the repo
git clone https://github.com/giuliolibrando/photoprism2immich.git
enter into the folder
cd photoprism2immich
source the virtualenv
source photoprism-env/bin/activate
install via pip
pip install .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file photoprism2immich-0.4.0.tar.gz
.
File metadata
- Download URL: photoprism2immich-0.4.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 390fbeda5fd721d8802dcc63697c0f1abdf3fc94f0d8ea364f53b35ad976691a |
|
MD5 | b4c79d0d1cdbe8daa195e35062b97450 |
|
BLAKE2b-256 | 828cee4487372c9af7aed34fe984aba9087917ef1f07d4356f9a0a10b4fccbe8 |
File details
Details for the file photoprism2immich-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: photoprism2immich-0.4.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a338bd960ad52424586de4ab74d91def37ed4c9e4056db3c5a816a1d4d403ff9 |
|
MD5 | bf47477cc616833773b733c47483ec2d |
|
BLAKE2b-256 | 2de9b0c6e41ffe1d7ceb0324d26721e1c8d16f2dc6c879b94ed99b5bea638e75 |