LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.36k stars 297 forks source link

Add Nextcloud support #580

Open ezzra opened 6 years ago

ezzra commented 6 years ago

Similar to dropbox, there could be an option to import photos from Nextcloud installations.

LudovicRousseau commented 6 years ago

Hello, Do you plan to propose a patch to implement that?

ildyria commented 5 years ago

Any news ? If not closing in a few weeks.

freechelmi commented 5 years ago

I guess webdav support would be needed first

mck182 commented 5 years ago

I think all that'd be needed is a full local directory sync (using inotify or some such). No need to deal with webdav.

I think I've read somewhere that local directory sync is in the plan/works, @ildyria can you confirm?

d7415 commented 5 years ago

I think all that'd be needed is a full local directory sync (using inotify or some such). No need to deal with webdav.

I think I've read somewhere that local directory sync is in the plan/works, @ildyria can you confirm?

I was going to work on that but hadn't gotten around to it. We're now on the verge of releasing v4 (Lychee-Laravel) and I have yet to look into how to implement it there. From early research it should be fairly straightforward though.

ildyria commented 3 years ago

I started having a quick look. Sadly I won't have the time to dive deeper.

Aside from getting the Storage::put() to work this will require a lot of refactoring. The reason being that currently we:

  1. upload the picture
  2. place it in the said folder and delete the tmp_file
  3. Generate the exif data, dimensions etc
  4. Generate the Photo object (record in the DB)
  5. Generate the thumbs.
  6. Save

Basically this requires to move the thumbnail generation before the Generation of the photo object. This will require significant rewrite of the code which I don't have the time at the moment.

I am currently doing a huge refactoring of the code, which hopefully will simplify this part.

tokenwizard commented 2 years ago

Rather than trying to directly integrate with NextCloud, could Lychee be configured to look for photos in a local folder? That path could be pointed to the NC Data folder that contains the Photos and then when you upload a photo to NC, it could be detected and added to the Lychee Library?

PhotoView uses this type of functionality, so you can continue using NC to manage your files and PhotoView gives you a "separate" gallery to view them in a nice way.

d7415 commented 2 years ago

could Lychee be configured to look for photos in a local folder?

Essentially, yes.

mariomare22 commented 2 years ago

Rather than trying to directly integrate with NextCloud, could Lychee be configured to look for photos in a local folder? That path could be pointed to the NC Data folder that contains the Photos and then when you upload a photo to NC, it could be detected and added to the Lychee Library?

PhotoView uses this type of functionality, so you can continue using NC to manage your files and PhotoView gives you a "separate" gallery to view them in a nice way.

I like that, but i was aiming on some UI integration over maybe WebDAV and also have the auto scan manageable from the UI itself and not Cron...

d7415 commented 2 years ago

manageable from the UI itself

Not automated, but just to mention that there's also "Import from server" in the UI that does the same as the CLI command.

sunjam commented 6 days ago

What about the long running Lycheesync? It has been around forever and serves the purpose of adding an arbitrary directory to lychee. Coded in Python.

d7415 commented 6 days ago

What about the long running Lycheesync? It has been around forever and serves the purpose of adding an arbitrary directory to lychee. Coded in Python.

That only works with Lychee v3