-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 cache issue #8483
Comments
cc @rullzer |
It has to be the mimetype of the preview. For example consider you are making an preview for some MP3 file that has album data in it. The resulting preview will be a jpeg or png. But the mimetype of the file is that of an mp3 file (audio/mpeg ??). Do you have an example image that you see this behaviour with? As I can't trigger it locally. |
Hi, an example would be this one OCP\Files\NotFoundException: /appdata_ocy1zr9xjp8r/preview/36128/192-128.png in /var/www/html/nextcloud/lib/private/Files/Node/Root.php:202 here is what I have in this folder 1024-1024-crop.jpg so a lot of things, but not the asked preview I was wondering, do we have a max cache size somewhere ? |
Ah Mmm I think this is caused by a bug that is fixed recently. Does this also happen for newly uploaded files? |
I don't know for newly uploaded files, I will try, thanks ! Fixed and released ? I'm on beta channel |
@rullzer Do you know by any chance if this is already released? |
Ah yes it is in 13. The issue was that we always saved a file as png. While it not always is a png. This caused some browsers to not play nice. This looks like the leftovers of that. I'll think if I can come up with a way to clean this all up properly :S |
I'm using previewgenerator app to pre-generate my thumbnails however I'm encountering an issue that could come from the preview engine.
in
private/Preview/Generator.php
we have
I've added the same
$preview = $this->getCachedPreview($previewFolder, $width, $height, $crop, $maxPreview->mimeType);
after generatePreview
Here, getCachedPreview should have been able to find a preview, however it still can't find a cached preview.
It seems the problem comes from "$maxPreview->mimeType" which I don't understand the purpose, why shouldn't it be "$mimeType"
?
Thank you
The text was updated successfully, but these errors were encountered: