-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Preview formats no longer sufficient for photo app 2.0.0 #1492
Comments
Hello there,
The built-in preview generator (https://github.com/nextcloud/server/blob/v25.0.4/lib/private/Preview/Generator.php) was updated to generate previews at intervals of powers of 4 instead of powers of 2. Additionally, if you have Imaginary set up, any request where width or height are <=256 will result in a 256px max preview being generated (for both cropped and original aspect ratio). This means that previews smaller than 256 will not be used, even if they were already generated by previewgenerator. The size calculation logic is all in here: https://github.com/nextcloud/server/blob/v25.0.4/lib/private/Preview/Generator.php#L415
previewgenerator is missing a few things:
I'm not sure what would be the best way to ensure previewgenerator is creating the correct sizes without overdoing... |
Cc @st3iny |
I was just looking into the built-in preview generation source code and noticed something that looked promising, namely Looks like with Nextcloud 26 my server won't go down because of on-the-fly preview generation :) |
Quick update: with Nextcloud 26 I can finally use the Photos app! 🎉🎉🎉 |
@LaXiS96 Thank your for your research on preview sizes. I'll try to incorporate the changes when time permits. TBH, I think that previewgenerator is becoming obsolete since the preview parallel limit was implemented. The app originally tried to solve the problem that is now solved: Extreme server load due to massively parallel preview generation. |
This is my POV as well :) |
I think it depends. If you've got thousands, maybe hundred thousands images and videos, it will took ages until you'll see any previews if you fast scrolldown. Yes, the system won't die anymore. |
Describe the bug
nextcloud 25.0.1
previewgenerator settings (works with nextcloud 24 and photos 1.6.0)
previewgenerator
5.1.1. produces in nextcloud 25.0.1 with photo app 2.0.0 such filesHowever, when the photo app is opened, previews are still generatoed on-the-fly which produces a very high CPU load and the entire photoapp/nextcloud becomes unuseable.
The generated previews are still sufficient for the memories app https://github.com/pulsejet/memories
When I remove all previews
/var/www/nextcloud$ sudo rm -rf data/appdata_ocn8kt6uce4g/preview/
,reset everything using/var/www/nextcloud$ sudo -u www-data php occ files:scan-app-data
and reopen the photo app in a private tab of a web browser, the following files are produces due the on-the-fly process.Desktop (please complete the following information):
Browser log
How to access your browser console (Click to expand)
Chrome
Safari
IE9
Firefox
Opera
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: