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
Example command for migrating library:
photoprism2immich migrate-library --apikey "aaaaaaaaaaaaaa" --baseapiurl "http://immich.local:2283/api" --originals "/photoprism-originals"
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.3.0.tar.gz
.
File metadata
- Download URL: photoprism2immich-0.3.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 085e8f87bf13758e3bfc3c65e1bbad9dbe7b883f6310a051499ea6b17150f314 |
|
MD5 | 55208603942852924a5181e47504aab6 |
|
BLAKE2b-256 | 4c963e8ff811a501d23c01538044f57d03f0d44c82e8e391dbf3bce79eb43dee |
File details
Details for the file photoprism2immich-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: photoprism2immich-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32e3401811c5ddd2f2f190dc0156cb7427bc12b7d6a49744c17e0273d9409d69 |
|
MD5 | 94572591bde0a7f49928c09e4f1d5f94 |
|
BLAKE2b-256 | 03e13606d610d792871c0bab19823fc1b0966379bec6586451d48340b23f5c7a |