Comments (21)
We've implemented this recently: Settings > Accounts > Sync
from photoprism.
If I may add my 2 cents to this. I currently use nextcloud for managing/syncing my 2tb photo collection.
The nextcloud gallery app: Is in my opinion unsuitable for big photo collections. Even with thumbnails generated it takes forever to navigate around the collection and the gallery app seems pretty buggy. Also separation of concerns would call for a separate app to do this (e.g. Photoprism).
The way I would solve the access to my nextcloud files is via WebDAV. Why? Every access to nextcloud should be done via one of the built-in channels to ensure nextcloud does not get confused and can keep track of changes.
About the performance: You will have some impact by going via WebDAV, but even when running Nextcloud and Photoprism on the same server I would mount Nextcloud via WebDAV and pass that folder as a volume to Photoprism. As indexing is a one time task it would not be too bad if it takes a while.
For the end user display I think Photoprism could vastly improve the performance by showing smaller thumbnails based on the bandwidth. For example by only showing 720p or 1080p preview in the browser unless I click some button to have full resolution.
I tried that setup with WebDAV in a virtual machine using a Nextcloud instance on a server in my local network and it works reasonably well.
from photoprism.
@twatzl Since we (the dev team in Berlin) currently don't use Nextcloud, it would be great if you can continue to explore the various options of gluing our apps together in a way that makes sense and that is fast/simple enough... You're welcome to create a wiki page to collect all information and/or write a blog post 👍
When our core features are done, we will have more time to look into this in detail.
from photoprism.
We can remember that for later, why not? Basic functionality first.
from photoprism.
Of course, we are still working on our first release ;)
Right now, you have to put them in a directory and run a command. Later you can upload them or use plugins. Give us a little bit of time. We're doing this for free. Glad you like it!
from photoprism.
A good way to access data stored in nextcloud is to do it over WebDAV. A simple WebDAV client in photoprism will also honour the access control and permissions set in nextcloud.
from photoprism.
Still need them locally for indexing and creating thumbnails with good performance. There are enough good webdav clients our there. Don't think it makes sense to implement one for the first release.
from photoprism.
See #41 concerning the use of existing / original file names. Ideally, I would use Nextcloud for uploading to import/nextcloud
, import the photos from there and access/browse/download them from originals
. Again, as described in the other ticket, if Nextcloud is your single source of truth, you might actually not be looking for a photo management software but a simple gallery for publishing your photos on the Web (from what I know, Nextcloud already has a gallery).
from photoprism.
What is the actually way to upload images? I think it isn't a good solution to upload the same images on two different places. In addition, nextcloud has mobile clients which photoprism doesn't have at the moment.
Then i have to wait for the release of nextcloud support :D
But nice repo!
from photoprism.
Hence, if that directory where a user needs to put them in is a directory that is synced via nextcloud or syncthing, then the files would be there. The command can then be run on a regular schedule or on demand. That automates the entire workflow.
In fact, I would prefer such a workflow. That would keep the photoprism source code simple and clean and people can find a variety of solutions to copy the photos to this directory. When I take photos with my SLR camera (which doesn't have wireless, of course), I typically copy them into a separate gallery folder so nextcloud can sync and back it up.
Now to get these photos into photoprism, I just need to map that same directory to photoprism. In case I install photoprism on the same server as nextcloud, then that's not a difficult thing to do at all!
Thanks a lot for this project! All the best... Looking forward to using and promoting it wherever I can...
from photoprism.
Well, there are multiple directories: Import, Export and Originals.
Originals contains the unique originals. You put new files in Import and they are getting moved to Originals or deleted if exists. All other files stay in import so that they are not getting lost.
Of course you can put files in Originals directly and simply re-index. But how do you ensure they are unique and properly named? You could end up having a mess.
Export is for photos you want to send / upload / download (e.g. as a zip files), so that they don't mess up the Originals directory.
from photoprism.
I'm using e2e encryption in nextcloud, so i can't sync the directory.
from photoprism.
Anyhow, syncing can always be done somehow. The important question (at least for me) is how to avoid duplicates and how to structure your photos directory in a proper way. Using two different applications for the directory/file structure and indexing makes it kind of awkward. You basically have to constantly re-index because you never know what happens to your files.
from photoprism.
What about using nextclouds state as original? You only have to fetch changed or added files.
from photoprism.
We need the files to be unique, otherwise it make the whole thing more complicated that it needs to be. If you let photoprism manage the file names / directories and use nextcloud for syncing, that could be an option. Or you simply import new files from nextcloud. But I think you want some kind of linking / mapping / syncing.
from photoprism.
You could write some kind of plugin that maps unique files with normalized file names to randomly named files (that don't have to be unique) in a different directory so that you have total freedom. It's a nice challenge for an afternoon. Actually very similar to what git does.
from photoprism.
@graciousgrey We should evaluate how we can integrate with Nextcloud. That way, we don't need our own mobile app for the start, if I got it right.
from photoprism.
Nextcloud integration sounds really good 👍
from photoprism.
Yes!
from photoprism.
For large collections it would be great to find a way to keep all the files directly inside Nextcloud so not just syncing the directories to Nextcloud but somehow operating on these directories that exist in Nextcloud. I'm not familiar with the possible ways so I will investigate it.
This setup would definitely help with mobile syncing without developing your own app.
Keep going man, your project is revolutionary!
from photoprism.
@devzsolt Thank you! Need to become familiar with how nextcloud stores photos... what you don't want is to manually search for duplicates and manually name every single file and directory.
from photoprism.
Related Issues (20)
- Index: Create a new photo or find an existing one if the photo UID has been restored from a sidecar YAML file HOT 1
- Library: Live photo / video preview loading delay (1-2 seconds)
- Video: Allow streaming of all HEVC videos under Windows, e.g. by transcoding to AVC HOT 4
- WebDAV: Adding TrueNAS as a service for syncing files does not work HOT 2
- Idea: As a User, I would like to see the current upload speed of the file being uploaded in the iOS/Android app
- Support for Cryptomator FS under Windows HOT 1
- Setup: Provide ARMv7 installation packages HOT 1
- Develop: Upgrade base image to Ubuntu 24.04 LTS (Noble Numbat)
- task "convert" takes a very long time to sort through the already encoded files HOT 1
- Picture Handling: Use Archive to conveniently manage second priority pictures
- Docker Photoprism error after server reboot
- Stacks: Stack files by dc:identifier HOT 1
- UX : Add Favorites section to main navigation for users with role viewer
- Metadata: Support reading GPS information from xmp HOT 2
- Frontend: Direct Link to images in frontend HOT 1
- Docker Compose: Rename `docker-compose.yml` to `compose.yaml`
- Account: Allow Users to Manage App Passwords from the UI HOT 7
- HEIC: Support spatial images as used for Apple Vision Pro HOT 2
- Index: Skip JPEG files with a ".heic" extension HOT 7
- Videos: Support FFmpeg hardware transcoding with Orange Pi Rockchip HOT 2
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 photoprism.