Skip to content
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

Add Nextcloud support #580

Open
ezzra opened this issue Sep 19, 2018 · 12 comments
Open

Add Nextcloud support #580

ezzra opened this issue Sep 19, 2018 · 12 comments
Labels
enhancement New feature or request Project for volunteers The team has no plans to work on it (e.g. lack of time) but an external contribution is accepted

Comments

@ezzra
Copy link

ezzra commented Sep 19, 2018

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

@LudovicRousseau
Copy link

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

@ildyria
Copy link
Member

ildyria commented Jun 13, 2019

Any news ? If not closing in a few weeks.

@freechelmi
Copy link

I guess webdav support would be needed first

@mck182
Copy link

mck182 commented Jun 13, 2019

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
Copy link
Contributor

d7415 commented Jun 13, 2019

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 ildyria transferred this issue from LycheeOrg/Lychee-v3 May 21, 2020
@ildyria ildyria added enhancement New feature or request Project for volunteers The team has no plans to work on it (e.g. lack of time) but an external contribution is accepted labels May 21, 2020
@ildyria
Copy link
Member

ildyria commented Dec 26, 2020

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
Copy link

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
Copy link
Contributor

d7415 commented Jun 22, 2022

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

Essentially, yes.

@mariomare22
Copy link

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
Copy link
Contributor

d7415 commented Jun 22, 2022

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
Copy link

sunjam commented Oct 19, 2024

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
Copy link
Contributor

d7415 commented Oct 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Project for volunteers The team has no plans to work on it (e.g. lack of time) but an external contribution is accepted
Projects
None yet
Development

No branches or pull requests

9 participants