-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fixing preview caching #13609
Comments
Once enhancement we could add:
Instead of returning the OC_Image object, write the preview to the handle and just return true/false. Any opinions? |
Another enhancement would be stream-based response types, that won't require us to load the cached preview into memory. |
Added StreamedResponse to the OP. |
|
I guess if OC_Image doesn't need to load the data in memory to do its resizing, it would be a good thing to have, yes. We can already do that for some providers by using OC_Image::loadFromFileHandle no? |
Previews generated by the bitmap preview class are now limited in their maximum dimensions: #13635 Affects:
|
Most of it should be done by the time 8.1 launches if all the PR get merged, but some changes will have to wait for 8.2 |
@oparoz move to 9.0 as we're past feature freeze ? |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
@DeepDiver1975 since you were working on preview stuff. |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
This issue has been automatically closed. |
This is a meta ticket used to reference all the various problems that need sorting so that preview generation and caching works quickly in all situations. The current solution is unbearably slow as soon as large images are involved.
Current situation
Asking for the first preview
This can be a Files thumbnail or a Gallery image per example, depending on how the picture was uploaded
The preview class collapses #13493
Large previews are returned by some preview providers #13607
Thumbnails of large files result in a time-out #13218
Save memory by streaming large previews straight from disk #13611
Asking for a new preview of different size
Caching seems to not be working #13516 #8196
Many PRs touching on thumbnail generation performance are affected by this, but the people most affected are the ones using large images, especially in formats which need to be converted by ImageMagick
How things will work
Once all those issues are fixed, we should have something that works like this
Asking for the first preview
Asking for a new preview of different size
@georgehrke Feel free to add any missing issues and PRs.
People who might be interested in this: @libasys @icewind1991
The text was updated successfully, but these errors were encountered: