-
-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link photos from NextCloud #55
Comments
Great idea ! +1 |
Another implementation idea: Instead of copying, if the two apps live on the same computer then LibrePhotos should take the NextCloud location for photos. If not on the same computer, then get a link to NextCloud’s photo address. |
Is mounting librephotos data folder to nextcloud data folder working? Last time I tried it showed nothing in my admin page (there was no path to select). |
This would be great! A further extension would be to use Nextcloud's sharing/permission system to share albums in librephotos, but that would require two-way integration. |
I have Nextcloud and Librephotos running on the same machine. I've set the Librephotos photos directory to the photos directory of my Nextcloud data folder. It works but there's a number of reasons why I'm not a fan of this approach and I think something like this suggestion would really be a clean way to integrate the two services. |
I think that the best practice to share files between multiple service is use file sharing like cifs, nfs or other network file system |
Best practice in what context? The issue here is that Nextcloud generally expects its data directory to not be modified externally. A network filesystem would not solve this problem (unless you set it up as an external storage provider in Nextcloud and moved all your photos there, but that comes with a bunch of other problems and limitations). In fact for this use case it would generally make things worse: more moving parts means more things to potentially break and impact performance, for no gain. |
Is there currently a recommended approach to pointing Librephotos to Nextcloud photos without having to duplicate the whole photo stash? |
You can use mount.davfs on librephotos data folder |
I used efrecon/docker-webdav-client like this: |
@TheFehr Did this end up working well for you? |
I have not been using it very much after setting up. I don't even have the containers up and running at the moment. |
Ok, thanks for the quick response. I'll give it a shot when i get a chance. Having the photos duplicated is chewing up a lot of storage and backup space! |
In case anyone else is wondering, the method described by @TheFehr in #55 (comment) seems to work quite well. @TheFehr Thanks for providing the Gist. I had been trying to get that davclient container to work for weeks! |
I finally got the time to try @TheFehr's suggestion but besides getting the librephotos-docker_davmount_1 instance to run and see within at /mnt/webdrive the photos from my nextcloudURL WebDAV, I can't get them to be processed/linked to Librephotos... @meichthys: Is there anything else I might be missing? Thanks |
Got it working after I cleaned ./librephotos directory and restarted librephotos-docker_backend_1 when the message "No connection to backend, try again latter" was showing after several minutes. Once I was able to log in, selected data directory again, the photo processing started! |
After testing for some days #55 (comment), to me it seems to be quite slow:
Fair to say that even though this time nextcloud and librephotos run in the same machine their network is independent (but it worked way faster with librephotos built-in Nextcloud scan support) . I might try to connect them locally if I run of out ideas as it will take too long to process all pics. |
@munsuri Thanks for following up with your observations. |
I used symlinks. |
This works well on a local machine, but many of us run nextcloud on a different machine. |
Currently, the Nextcloud Client downloads all the pictures into its own folder.
r/selfhosted would like an option where the original photos are just linked and not downloaded. We would still create the thumbnails and create the tags, but when we open a picture a request goes to the Nextcloud server instead.
We use this client to download the images currently:
https://github.com/owncloud/pyocclient
As I don't think we want to share all pictures via a public link, we want to save the information about the path within the photo. We need a new attribute "nextcloud_address", where we can save the server link and this would signify that the media is on a nextcloud server.
We would only download the image temporarily to create the thumbnails and read the metadata. This should be handled here and here.
We have to change all functions where an original is accessed. This would be currently on "saving metadata to disk / saving favorites" here and "download images" here. We would also need to redirect the request when accessing videos, because we read the original for that here.
The text was updated successfully, but these errors were encountered: