Comments (20)
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.
from librephotos.
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!
Also, another observation, when changing nextcloudURL WebDAV in the .env file (and restarting the containers), librephotos didn't recognize any other picture, I had to again clean ./librephotos directory and start over.
from librephotos.
After testing for some days #55 (comment), to me it seems to be quite slow:
INFO:ownphotos:job 07c2cb52-...: geolocate: /data/imgs/IMG-20170730-WA0025.jpg, elapsed: 42.284343
INFO:ownphotos:job 07c2cb52-...: extract date time: /data/imgs/IMG-20170730-WA0025.jpg, elapsed: 84.896152
INFO:ownphotos:job 07c2cb52-...: add location to album dates: /data/imgs/IMG-20170730-WA0025.jpg, elapsed: 84.896853
INFO:ownphotos:job 07c2cb52-...: extract rating: /data/imgs/IMG-20170730-WA0025.jpg, elapsed: 123.172693
INFO:ownphotos:job 07c2cb52-...: extract video length: /data/imgs/IMG-20170730-WA0025.jpg, elapsed: 123.173287
INFO:ownphotos:job 07c2cb52-...: extract faces: /data/imgs/IMG-20170730-WA0025.jpg, elapsed: 123.611234
INFO:ownphotos:job 07c2cb52-...: image processed: /data/imgs/IMG-20170730-WA0025.jpg, elapsed: 123.645108
INFO:ownphotos:job 07c2cb52-...: handling image /data/imgs/IMG-20170730-WA0026.jpg
INFO:ownphotos:job 07c2cb52-...: generate thumbnails: /data/imgs/IMG-20170730-WA0026.jpg, elapsed: 0.237256
INFO:ownphotos:job 07c2cb52-...: calculate aspect ratio: /data/imgs/IMG-20170730-WA0026.jpg, elapsed: 0.263348
INFO:ownphotos:generated places365 captions for image /protected_media/thumbnails_big/154081351a3add7e57105ac3b8965a241.webp.
INFO:ownphotos:job 07c2cb52-...: generate caption: /data/imgs/IMG-20170730-WA0026.jpg, elapsed: 0.39006
INFO:ownphotos:job 07c2cb52-...: geolocate: /data/imgs/IMG-20170730-WA0026.jpg, elapsed: 44.677656
INFO:ownphotos:job 07c2cb52-...: extract date time: /data/imgs/IMG-20170730-WA0026.jpg, elapsed: 86.826832
INFO:ownphotos:job 07c2cb52-...: add location to album dates: /data/imgs/IMG-20170730-WA0026.jpg, elapsed: 86.827442
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.
from librephotos.
Great idea ! +1
from librephotos.
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).
from librephotos.
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.
from librephotos.
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.
from librephotos.
I think that the best practice to share files between multiple service is use file sharing like cifs, nfs or other network file system
from librephotos.
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.
from librephotos.
Is there currently a recommended approach to pointing Librephotos to Nextcloud photos without having to duplicate the whole photo stash?
from librephotos.
You can use mount.davfs on librephotos data folder
from librephotos.
I used efrecon/docker-webdav-client like this:
https://gist.github.com/TheFehr/5329944b0130eb8aeb8e14c6d4577180
And seems to be working fine so far only set it up today. So there might be bugs I have not yet caught.
from librephotos.
@TheFehr Did this end up working well for you?
from librephotos.
I have not been using it very much after setting up.
I don't even have the containers up and running at the moment.
from librephotos.
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!
from librephotos.
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!
from librephotos.
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
from librephotos.
@munsuri Thanks for following up with your observations.
@derneuere Has there been any progress on linking to Nextcloud Photos in order to prevent duplication of the raw photos? Ive tried the alternatives but since i don't run Nextcloud & LibrePhotos on the same machine, the alternative options to duplicate photos is not very compelling.
from librephotos.
Is there currently a recommended approach to pointing Librephotos to Nextcloud photos without having to duplicate the whole photo stash?
I used symlinks.
from librephotos.
Is there currently a recommended approach to pointing Librephotos to Nextcloud photos without having to duplicate the whole photo stash?
I used symlinks.
This works well on a local machine, but many of us run nextcloud on a different machine.
from librephotos.
Related Issues (20)
- Image viewer full screen option, same as video player
- "similar images" not clickable HOT 1
- Return if photo was uploaded but not yet processed HOT 13
- Database Initialization Fails on Unraid with Docker Compose HOT 2
- Docker - On first boot LibrePhotos does not load setup | Cannot sign in at logon screen HOT 6
- Streamline dedup process as part of the photo scan HOT 4
- Map places markers in wrong locations HOT 7
- External Authentification Openid Connect
- Delete from trash after n days
- Faces tagging in Firefox: Detail: Invalid Page when tagging faces
- Add release/environment details to Admin page for easy bug reporting HOT 1
- The "Scan Photos" task in my LibrePhotos installation does not complete and appears to hang indefinitely. HOT 4
- Title: Feature Request: Duplicate File Detection and Deletion
- Crash when requesting summary of hidden photo HOT 1
- Adding ETag support for /api/albums/date/list/ endpoints HOT 2
- German Tags
- Feature Request: Search Functionality for Images by Camera Model (ILCE-6400)
- "Large Language Model" always downloaded
- Add search fields for person name and file path back
- torch causes Fatal Python error: Floating point exception HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librephotos.