Code Monkey home page Code Monkey logo

Comments (10)

ildyria avatar ildyria commented on August 19, 2024 3

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.

from lychee.

LudovicRousseau avatar LudovicRousseau commented on August 19, 2024

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

from lychee.

ildyria avatar ildyria commented on August 19, 2024

Any news ? If not closing in a few weeks.

from lychee.

freechelmi avatar freechelmi commented on August 19, 2024

I guess webdav support would be needed first

from lychee.

mck182 avatar mck182 commented on August 19, 2024

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?

from lychee.

d7415 avatar d7415 commented on August 19, 2024

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.

from lychee.

tokenwizard avatar tokenwizard commented on August 19, 2024

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.

from lychee.

d7415 avatar d7415 commented on August 19, 2024

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

Essentially, yes.

from lychee.

mariomare22 avatar mariomare22 commented on August 19, 2024

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

from lychee.

d7415 avatar d7415 commented on August 19, 2024

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.

from lychee.

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.