You are not logged in.
When I try to open a Nikon NEF Raw image file with Gwenview, I get the following error:
Loading ‘Image.NEF’ failed
Gwenview cannot display documents of type image/tiff.
After Installing qt5-imageformats and kimageformats, the image actually displays, but at a very low resolution (120x160).
Output of file command:
/path/to/Image.NEF: TIFF image data, little-endian, direntries=28, height=120, bps=352, compression=none, PhotometricIntepretation=RGB, manufacturer=NIKON CORPORATION, model=NIKON D3400, orientation=upper-left, width=160
Output of mimetype command:
/path/to/Image.NEF: image/x-nikon-nef
Additional Information:
❯ gwenview --version
gwenview 21.08.0
❯ file --version
file-5.40
magic file from /usr/share/file/misc/magic
seccomp support included
❯ mimetype --version
mimetype 0.30
Copyright (c) 2003, 2012 Jaap G Karssenberg. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
❯ pacman -F /etc/mime.types
etc/mime.types is owned by extra/mailcap 2.1.53-1
Related installed packages: libraw, libtiff, qt5-imageformats and kimageformats.
Any ideas?
Offline
Use Darktable or Shotwell? I don't think Gwenview can do it...
Offline
Darktable, Shotwell and Rawtherapee can open the image.
A few (2 - 3) weeks ago this was working for some reason.
The problem is that gwenview detects the Type as Nikon NEF raw image, but the content as TIFF image.
Offline
The TIFF is the embedded thumbnail image. RAW image formats include thumbnails for software that cannot read RAW.
Maybe file a bug report with the gwenview developers then if it worked in the past.
Offline
Opened KDE bug report: https://bugs.kde.org/show_bug.cgi?id=441698
Offline
I have tried the NEF images from http://www.luminescentphoto.com/nx2/nefs.html and can confirm this bug. Works fine in Shotwell, but thumbnails only in Gwenview.
Offline
I'm not sure it's a gwenview issue.
Okular, lximage (from lxqt) , kuickshow, pqiv, gpicview and xloadimage all have problems.
geeqie and imagemagick are able to show it correctly.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
It might be a problem that the file command is showing the wrong MIME...
Last edited by maxicarlos08 (2021-08-30 11:06:35)
Offline
Ahh, someone has already opened a bug report at bug tracker for the file command: https://bugs.astron.com/view.php?id=271
Offline
Maybe gwenview can display it if you install qtraw (AUR). I don't know if some fixes for the mime database are needed as well.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
@progany, qtraw did not fix the problem, its a problem of the MIME database.
Offline
You need qtraw to give qt the ability to display raw images. Then the image has to be detected with the correct mime type. Finally, you need to tell qt that this plugin can open that mime type (I think only image/x-sony-arw is defined in the plugin for now).
Edit: For GTK applications, something similar should be possible through libopenraw and its gdk-pixbuf2 module.
Last edited by progandy (2021-08-30 12:19:14)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
So why was I able to open raw images with gwenview and libraw (without qtraw) a few weeks ago (when the mime database was working)?
I don't think qtraw is needed for raw images, only libraw (which I have installed).
Offline
Ah, I missed that gwenview has special support for raw images using libkdcraw, sorry.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline