You are not logged in.

#1 2021-08-28 16:13:39

maxicarlos08
Member
Registered: 2021-08-28
Posts: 9

KDE Gwenview cant open Nikon NEF files

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

#2 2021-08-28 16:51:41

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: KDE Gwenview cant open Nikon NEF files

Use Darktable or Shotwell? I don't think Gwenview can do it...

Offline

#3 2021-08-29 11:56:23

maxicarlos08
Member
Registered: 2021-08-28
Posts: 9

Re: KDE Gwenview cant open Nikon NEF files

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

#4 2021-08-29 12:41:33

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: KDE Gwenview cant open Nikon NEF files

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

#5 2021-08-29 13:05:09

maxicarlos08
Member
Registered: 2021-08-28
Posts: 9

Re: KDE Gwenview cant open Nikon NEF files

Offline

#6 2021-08-29 13:43:31

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: KDE Gwenview cant open Nikon NEF files

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

#7 2021-08-30 10:47:44

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,027

Re: KDE Gwenview cant open Nikon NEF files

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

#8 2021-08-30 11:06:09

maxicarlos08
Member
Registered: 2021-08-28
Posts: 9

Re: KDE Gwenview cant open Nikon NEF files

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

#9 2021-08-30 11:35:21

maxicarlos08
Member
Registered: 2021-08-28
Posts: 9

Re: KDE Gwenview cant open Nikon NEF files

Ahh, someone has already opened a bug report at bug tracker for the file command: https://bugs.astron.com/view.php?id=271

Offline

#10 2021-08-30 12:06:42

progandy
Member
Registered: 2012-05-17
Posts: 5,269

Re: KDE Gwenview cant open Nikon NEF files

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

#11 2021-08-30 12:11:07

maxicarlos08
Member
Registered: 2021-08-28
Posts: 9

Re: KDE Gwenview cant open Nikon NEF files

@progany, qtraw did not fix the problem, its a problem of the MIME database.

Offline

#12 2021-08-30 12:14:29

progandy
Member
Registered: 2012-05-17
Posts: 5,269

Re: KDE Gwenview cant open Nikon NEF files

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

#13 2021-08-30 13:13:58

maxicarlos08
Member
Registered: 2021-08-28
Posts: 9

Re: KDE Gwenview cant open Nikon NEF files

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

#14 2021-08-30 13:29:37

progandy
Member
Registered: 2012-05-17
Posts: 5,269

Re: KDE Gwenview cant open Nikon NEF files

Ah, I missed that gwenview has special support for raw images using libkdcraw, sorry.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB