-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Preview Gallery not working on some TIF and TIFF #12876
Comments
Could you submit a PR if that is a bugfix? |
I will not submit a PR because this is a quick and dirty fix. I don't understand why the extension *.tiff is not working anymore, it was working before and if this bug is generic or if it's only on my server. |
I can at least confirm the error with NC15.
The error in the log is:
Converting the same file on the command line does work - so ImageMagick does contain a tiff to image converter... |
I also have a problem viewing TIFF files in nextcloud now (v16), when it was not a problem in earlier versions. Interestingly, the previews of TIFFs that appear to have been created by earlier nc versions are still shown. Also, if I use the (old) gallery app to view pictures, I can browse through the old folders with existing previews. From the gallery app, I can even get the TIFFs to be displayed in a window-filling manner by clicking on them. However, if I go to a newer folder with no previews, this files don't even show up in the gallery app. In some respects I liked the old gallery app better. But currently there is quite a confusion between gallery app and the other two view modes (list/grid). I am also not sure what we call "preview" — is it the thumbnail that's displayed in grid/list modes, or is it what I get when I click on an image so that it's displayed in window size? (I am not calling it full-size, as I am not sure whether these are actually down-scaled versions of the pictures.) In general, I find matter quite messy in this respect at present. |
Just made the migration from Nc 16.01 to Nc 17.01 and the bug is still present. The fix seems the same. |
I think the root cause is that something wrongly detects the MIME type of a .TIF file as Here is a test file: test-tiffs.zip |
Hey. I'm not sure how to reproduce this issue. Do you still see this issue?
server/resources/config/mimetypemapping.dist.json Lines 174 to 175 in b7f93cc
Opening the files with viewer (default app for viewing files since Nextcloud 17) do not work. Files are downloaded. This seems to work for a png file. A enhancement issue is already filled over here: nextcloud/viewer#229 If this is still a issue for you please provide a detailed way how to reproduce this problem. Adding the issue template would help a lot. |
Hi @kesselb while compiling the data for the issue template I stumbled upon the active app Camera RAW Previews. Deactivating this app fixes TIF-previews for me. I have opened an issue there: ariselseng/camerarawpreviews#39 For me at least TIF preview is working as it should now (of course after adding We have a little app that registers TIFF files handling for the |
@d--j: Yes, I had |
Hi, I have a fresh install and have the problem where thumbnails for tiff's are not being displayed (jpeg's are fine) I do not have any apps installed, can anyone please point a "noob" in the right direction to get this working, even if it is a dirty fix? Many Thanks in advance! |
@kesselb I think you can close this issue. @mbc0 Just install the Camera RAW Previews App – in its newest version it will give you TIFF thumbnails without any configuration changes (only if your server has the Imagick PHP extension installed). If your server does not have PHP's Imagick extension installed you are out of luck. Anyways, you should probably move your question over to https://help.nextcloud.com/ – this here is the wrong place to ask questions. |
Thanks @d--j 👍 |
My problem still exists - but I think it could be a wider issue with MY system - some kind of clash between gd and imagemagick. I am getting strange errors even trying to debug the issue in ./lib/private/Preview/Bitmap.php
(I know in general we are trying to convert TIFF to PNG...) And in other tests - memory allocation errors... As the original system is full of legacy websites that are all very fragile I've decided to move my testing of this issue to a new droplet and using docker for more effective control of the testing environment. Currently using https://github.com/ReinerNippes/nextcloud_on_docker on a 16.04 ubuntu droplet. Nextcloud version 17.02. I'll comment here if I find anything relevant. |
My current impression is that my problems are a "special case" due to how I compiled pdlib/dlib into the system (to use the facerecognition app). Changing the compile parameters solved the problem. See my investigation at: matiasdelellis/facerecognition#216 |
After i have migrated a previous installation of Nextcloud 14.0.2 from Ubuntu 16.04 to Ubuntu 18.04 and then NC 14.0.4 the preview for some TIF images wasn't working.
NextCloud version : 14.0.4
Operating system and version : Ubuntu 18.04
Apache : 2.4
PHP version : 7.2
ImageMagick : 6.9.7-4
I have first posted the issue in Support Section : https://help.nextcloud.com/t/nc14-problems-with-preview-tif-ai-raw-images-on-new-installation/42445
Files having issues :
the TIF images containing .tiff extension
The TIF images having a MimeType recognized as image/x -dcraw
I don't know if the causes of this malfunctions is the 14.0.4 NC update or the new Imagick Library installed by default on Ubuntu 18.04
The first fix was to modify the PreviewManager.php line 368
adding an image magick provider for the TIFF files =>
'TIFF' => ['mimetype' => '/image\/tif/', 'class' => Preview\TIFF::class]
The second fix was to add a provider for the mimetype 'image/x-dcraw'
$this->registerCoreProvider(Preview\TIF::class, '/image\/x-dcraw/');
I have to add it as a a registerCoreProvider because the imagickProviders is using only one extension by mimetype.
The text was updated successfully, but these errors were encountered: