Giter Site home page Giter Site logo

Comments (20)

derneuere avatar derneuere commented on May 17, 2024 12

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.

munsuri avatar munsuri commented on May 17, 2024 3

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.

munsuri avatar munsuri commented on May 17, 2024 1

After testing for some days #55 (comment), to me it seems to be quite slow:
Screenshot 2022-04-24 173018

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.

thelittlefireman avatar thelittlefireman commented on May 17, 2024

Great idea ! +1

from librephotos.

sysoppl avatar sysoppl commented on May 17, 2024

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.

clawoflight avatar clawoflight commented on May 17, 2024

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.

mike-lloyd03 avatar mike-lloyd03 commented on May 17, 2024

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.

tomamplius avatar tomamplius commented on May 17, 2024

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.

strugee avatar strugee commented on May 17, 2024

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.

mike-lloyd03 avatar mike-lloyd03 commented on May 17, 2024

Is there currently a recommended approach to pointing Librephotos to Nextcloud photos without having to duplicate the whole photo stash?

from librephotos.

tomamplius avatar tomamplius commented on May 17, 2024

You can use mount.davfs on librephotos data folder

from librephotos.

TheFehr avatar TheFehr commented on May 17, 2024

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.

meichthys avatar meichthys commented on May 17, 2024

@TheFehr Did this end up working well for you?

from librephotos.

TheFehr avatar TheFehr commented on May 17, 2024

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.

meichthys avatar meichthys commented on May 17, 2024

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.

meichthys avatar meichthys commented on May 17, 2024

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.

munsuri avatar munsuri commented on May 17, 2024

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.

meichthys avatar meichthys commented on May 17, 2024

@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.

simonSlamka avatar simonSlamka commented on May 17, 2024

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.

meichthys avatar meichthys commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.