Giter Site home page Giter Site logo

Comments (11)

ildyria avatar ildyria commented on June 5, 2024

This is most likely due to a timeout either by apache or Php.

from lychee-v3.

kamil4 avatar kamil4 commented on June 5, 2024

Can you try setting php_script_limit to 1 in the advanced options?

In general, this problem is fully fixed in https://github.com/LycheeOrg/Lychee-Laravel (soon-to-be-v4).

from lychee-v3.

mrjoli021 avatar mrjoli021 commented on June 5, 2024

Where can I find the advanced options? I dont see it on the site.

from lychee-v3.

kamil4 avatar kamil4 commented on June 5, 2024

Go to Settings, scroll to the bottom, click More. You'll see all the settings listed. Change the value of php_script_limit from 0 to 1 and save the settings.

from lychee-v3.

mrjoli021 avatar mrjoli021 commented on June 5, 2024

I got this issue resolved by increasing the timeout in the php.ini.

the issue now is that since there are so many pictures, the pictures never load on the site. So the site initially loads with a total of 12k + pictures in the unsorted album. When I click on the album the site freezes and never returns any pictures. How can I fix this?

from lychee-v3.

kamil4 avatar kamil4 commented on June 5, 2024

I don't have experience with 12k+ albums in Lychee v3 but I have one such album in Lychee-Laravel (soon-to-be v4) and, as the two versions currently share the same front end code, here's my advice:

Don't do it 😄

At least the v4 server can handle such albums relatively OK, but the front end, and actually by the look of it the web browser itself, is really struggling. There've been proposals to introduce pagination or infinite scroll to combat that, but no code so far. The only improvement we did implement to make this less painful is the lazy loading of photos (so the browser doesn't download them until they are visible). Still, for me a 13k+ album does load, but it takes some 25 seconds for the first photos to render (on a dual-core i7 CPU).

My advice is to keep albums to around 1000 photos. That number seems to be handled much better.

from lychee-v3.

d7415 avatar d7415 commented on June 5, 2024

Importing from server creates albums for folders, so sorting before you import is an option too.

from lychee-v3.

mrjoli021 avatar mrjoli021 commented on June 5, 2024

ok I can easily split this into 1000 pictures per directory. This will create about about 1200 directories. How can I import them automatically? Is there a backend script or something to import all these directories?

from lychee-v3.

d7415 avatar d7415 commented on June 5, 2024

ok I can easily split this into 1000 pictures per directory. This will create about about 1200 directories.

12, surely?

How can I import them automatically? Is there a backend script or something to import all these directories?

It's been a while, but I'm pretty sure you just upload the parent. i.e. tell it to import from uploads/import and have e.g. uploads/import/a, uploads/import/b etc as subdirectories.

from lychee-v3.

ildyria avatar ildyria commented on June 5, 2024

Fixed?

from lychee-v3.

ildyria avatar ildyria commented on June 5, 2024

Time to close.

from lychee-v3.

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.