Immich Integration with Nextcloud

Good morning everyone, I was thinking of building a cloud platform for backing up my devices on Nextcloud, which I really like. However, I donā€™t like the photo management solution and I want to use Imich instead, but only as a viewer and not for anything else, as itā€™s still very unstable and not secureā€¦ So I thought to set up Imich as an external library for the photo backup folder, so that I have them on a fast viewer and so onā€¦ Iā€™ve managed to do this and it works great, and Iā€™ve also discovered that if I delete photos on Imich, theyā€™re also deleted on the directory that points to them, and therefore also on Nextcloudā€¦ Now, I want to know if deleting photos directly from the directory on Unraid will be appreciated by Nextcloud and MariaDB (the DB Iā€™m using for NC) or could it cause problems? My fear is that modifying files without going through the NC interface could cause chaos and bugs inside NCā€¦"

Please let me know if you have any questions or if thereā€™s anything else I can help with!

Donā€˜t do that. Modifying the files will cause problems. Use WebDAV only.

1 Like

And how can I use WebDAV to import the folder from NC as a library in Immich? Do you have any guidelines? Sorry, but Iā€™m new to using NCā€¦

I know nothing about Immich.
Can it act as a WebDAV client? NC is a mature enhanced WebDAV server.

1 Like

ok perfect Iā€™ll see what I can do through systems
Thank you!

Hello Fab18,

Iā€™m interested in your setup with Immich. Could you please tell me if itā€™s possible to set up multiple accounts and manage them separately? For example, I would like to set up my motherā€™s photos to be managed by her Immich app, while my photos are managed by my own Immich app, keeping them separate. Have you done this before, and if so, could you share how you did it?

Thank you!

Hi @fab18

Did you try both: photos and memories?

App-Id photos
App-Name Photos
Summary Your memories under your control
Categories multimedia
Repository GitHub - nextcloud/photos: šŸ“ø Your memories under your control
Shipped (included), default enabled App

App-Id memories
App-Name Memories
Summary Fast, modern and advanced photo management suite
Categories multimedia
Website https://memories.gallery
Repository GitHub - pulsejet/memories: Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
Not-shipped (not included) App available in appstore
Appstore https://apps.nextcloud.com/apps/memories

I found this comparison:


I have looked over the Imich project and it doesnā€™t look like one can simply install both projects and connect them to each other via a protocol (such as WebDAV) it will need a realy good developed immich integration app to be developed from someone with deep knowledge of both projects.

Maybe you? Since you already made some experiences!


Much and good luck,
ernolf

How did you do it? Did you integrate the files as ā€œexternal libraryā€ to immich?

Your fear is justified. All files are stored in the database under a unique fileid. All changes made at file system level must also be reflected in the oc_filecache table in the database.

However, there is an occ command to do that. If you want to quickly put something together using simple scripting tools, you should do the database integration with ā†’ occ files:scan ā† . That command will remove deleted files from the oc_filecache, update changed (size, mtime, storage_mtime) files and add new files to it, so those changes wil become visible to the nextcloud ecosystem.

You can use occ files:scan very finegrained, not just for --all files - which can be a verry time consuming task - but it is possible to only scan one directory or even one single file, which is very fast.


Much and good luck,
ernolf