(WORKAROUND) MGA8 Plasma, Gwenview can not view RAW image

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

(WORKAROUND) MGA8 Plasma, Gwenview can not view RAW image

Postby kajosim » Jul 8th, '21, 12:02

Hi

Just installed MGA8 on my main (stationary) PC. Using Plasma. Gwenview can no longer view RAW photo files (.3FR ) . Neither is it set as the default viewer, but the (Gnome) Document Viewer.
When trying to open file I get an error box "Loading <filename> failed. Loading meta information failed."

Before in MGA7 Gwenview was the default viewer and worked very nice and shows a better quality picture than the Document Viewer.
It is not a Plugin that is used (in MAG7) to view RAW files and the setup M7/8 is similar.
So it may be a module or lib-file that is used to read meta data.

Plasma > System Setting > Applications > File Associations do not recognize the .3FR extension. 3FR has some relation to .FFF extension which is known as a TIFF image. This both M7/8
In Dolphin hovering mouse over a 3FR-file the properties shows : Type: TIFF image. This both M7/8

This should not have any influence , but in case : during the initial install of MAG8 I did not install DarkTable, but had to do it afterwards due to GIMP needed it to import RAW files.

I would very much like to use Gwenview to view my RAW files as in MAG7.

Regards.
Last edited by kajosim on Jul 11th, '21, 00:01, edited 1 time in total.
kajosim
 
Posts: 52
Joined: Feb 22nd, '17, 00:55

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby doktor5000 » Jul 8th, '21, 16:36

FWIW, which media did you use to install mga8 ?

Also please post the output of the following command:
Code: Select all
for pkg in $(rpm -qa --queryformat '%{RECOMMENDNAME} \n' | sort -u | grep -v '(none)'); do rpm -q ${pkg} &>/dev/null || echo ${pkg}; done


For the issues with the MIME type definition, that's a separate issue and as you mentioned this also existed in mga7 already. Also from a quick check, that doesn't seem to be the regular file suffix for raw images.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby sturmvogel » Jul 8th, '21, 18:51

doktor5000 wrote: Also from a quick check, that doesn't seem to be the regular file suffix for raw images.


@doktor5000: 3FR is a proprietary raw file format from Hasselblad for Hasselblad cameras.
https://www.hasselblad.com/learn/sample-images/

@kajosim: Please provide the information which doktor5000 requested. On my 3 different Mageia 8 machines, 3fr files get opened with Gwenview out of the box (one machine "grown" from Mga 6->7->8; one machine "grown" from Mga 8 beta->8 final; one machine clean Mga 8 installation)
sturmvogel
 
Posts: 678
Joined: Jul 30th, '12, 00:39

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby doktor5000 » Jul 8th, '21, 21:13

sturmvogel wrote:@doktor5000: 3FR is a proprietary raw file format from Hasselblad for Hasselblad cameras.

Yep, that's what I saw too. And that doesn't seem very common and might explain why it's not defined as MIME type and why gwenview is not the default.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby morgano » Jul 8th, '21, 21:31

Could it be that something from tainted repo is needed?
Mandriva since 2006, Mageia 2011 at home & work. Thinkpad T40, T43, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1306
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby sturmvogel » Jul 8th, '21, 22:42

I searched a little bit further and it could be connected to the follwing packages: kajosim should check if "lib64raw20", "lib64kf5kdcraw5" and "libkdcraw" is installed. We could see it if he provides the output from doktor5000s command....

According to https://www.libraw.org/supported-cameras one of the mentioned packages should add the Hasselblad support.
sturmvogel
 
Posts: 678
Joined: Jul 30th, '12, 00:39

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby kajosim » Jul 8th, '21, 23:54

Hi.

Thanks for all responses. Some answers below may be a little outdated.

I always do a clean Classic Installation using Mageia-8-x86_64.iso .
I chose both KDE/Plasma and Gnome Desktop and do a manual selection of programmes/modules to install (eg. 100dpi.fonts, okteta, most video-players)
This is my main private "work" computer and I like to do some hobby programming so C and C++ also gets installed.

Partitions : / and swap on a SSD , and on HDD: /var and 2 partitions (had to buy a second HDD) mouted on /mnt where I have my own files in folders which are sym-linked to /home/<me> . At present I have MAG6 , 7 and now 8 installed in this way (and there is room for MAG9) .
So I can compare MAG8 and 7 .

Install Media sources : all (+ 32bit) except no DEBUG nor TESTING and only CORE BACKPORTS (no other BACKPORTS).

I think that the first guess of file type in Linux is based on the extension, but then a small program (named: file ) tries to figure out the real type.
So I think it is this small program that tells it is a TIFF image although this is probably not conpletely true.

The content and format of RAW image files may depend on sensor hardware and firmware so it comes in many flavours and thereby different file suffix. Some camera makers have (partially) chosen to use the DNG format, On http://ufraw.sourceforge.net/Cameras.html is listed many cameras supported by UFRaw which are NOT using DNG .
The ".3FR" (and .FFF) is used by Hasselblad (probably proprietary) . But UFRaw, DarkTable, RawTherapee, Document Viewer and in Mag7 anso Gvenview can all read (and edit) the files.
The .3FR contains in my case a RAW compressed image with 39Mpixel, 3 colours at 16bit stored in about 50 MB file size. So some processing has to be done by the camera firmware !

Gwenview works perfect on normal files such as JPEG and also on another RAW format .CR2

Document Viewer calculates a downsized image at about 450 x 340 and then upscales as necessary. I am using a 4K TV as monitor and even though the pixel borders are smoothed out then it shows. It is far from the quality of Gwenview in M7.

Looking at http://gwenview.sourceforge.net/overview it is stated : "Gwenview can load and save all image formats supported by KDE"
When I hover the mouse over a file in Dolphin tooltips are shown and for all image files including .3FR it includes a small picture of the picture as normal . So Dolphin is able to "read" the file.
The Plama System Setting > file associations have by default chosen Document Viewer in stead of Gwenview to view many image files. Maybe there is a reason for this.

Using MCC to Check the files mentioned by sturmvogel :
lib64raw20, lib64kf5kdcraw5, libkdcraw are all installed.

The requested info :

Code: Select all
[root@localhost ~]# for pkg in $(rpm -qa --queryformat '%{RECOMMENDNAME} \n' | sort -u | grep -v '(none)'); do rpm -q ${pkg} &>/dev/null || echo ${pkg}; done
a52dec
abiword-doc
akregator-handbook
allegro4
alsa-plugins-pulseaudio
anacron
appdata-tools
ark-handbook
aspell-dictionary
audacious-pulse
audiocd-kio
bolt
bzr
cervisia-handbook
clang
compiler-rt(x86-64)
dragon
firefox-l10n
font(cantarell)
gcalctool
gcc-plugins(x86-64)
geoclue2
geoip
gimp-help
git-arch
git-prompt
gnome-directory-thumbnailer
google-noto-emoji-fonts
gsound
gstreamer1.0-faac
gstreamer1.0-fluidsynth
gtk3(x86-64)
gvfs-archive
gvfs-goa
gwenview-handbook
hawkey-man
html2text
hugin
hunspell-dictionary
iscan
kaddressbook-handbook
kamera-handbook
kate-handbook
kcalc-handbook
kcharselect-handbook
kcm_cddb-handbook
kcron-handbook
kdeconnect-kde-handbook
kguiaddons
kldap-handbook
kleopatra-handbook
kmailtransport-handbook
knotes-handbook
kolourpaint-handbook
konsole-doc
krfb-handbook
kross-interpreters-python
ksudoku-handbook
ktexteditor-plugins
ktimer-handbook
kwalletmanager-handbook
lib64canberra-gtk0
lib64gvfs0
lib64lame0
libalsa-plugins-pulseaudio
libdnf-lang
libgxps-tools
libinput-tools
libksieve-handbook
libstdc++-python-devel
mariadb-extra(x86-64)
mdv-rpm-summary
netprofile-plugin-firewall
notification-daemon-engine-nodoka
npapi-vlc
okular-handbook
openssh-askpass
openswan
packagekit-gtk-module
perl-Authen-SASL
perl(List::MoreUtils::XS)
pinentry-gnome3
pipewire(x86-64)
pkg-command(debuginfo-install)
plasma-browser-integration
plasma-disks
polkit-desktop-policy
python3dist(pysmbc)
quota-rpc
rdesktop
rpmlint-mageia-policy
rpm-plugin-ima
samba-winbind-clients
sasl2-plugin-kdexoauth2
sectool
smb-client
speech-dispatcher
tpm2-tss
uniconvertor
virtualbox-doc
vlc-plugin-samba
[root@localhost ~]#


Thanks.
kajosim
 
Posts: 52
Joined: Feb 22nd, '17, 00:55

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby doktor5000 » Jul 9th, '21, 23:22

If you open one such .3fr file from a terminal with gwenview, can you please post the whole output here?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby kajosim » Jul 10th, '21, 00:28

Hi doktor5000

On MAG8
Code: Select all
kjs@localhost FotoAlbumHasselblad]$ gwenview A8447200.3FR
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-nikon-nrw"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-samsung-srw"
org.kde.kdegraphics.gwenview.lib: Not a JPEG file: starts with 0x50 0x36
org.kde.kdegraphics.gwenview.lib: libjpeg fatal error

org.kde.kdegraphics.gwenview.lib: Could not load image with Exiv2, reported error: "The memory contains data of an unknown image type"
org.kde.kdegraphics.gwenview.lib: Not a JPEG file: starts with 0x50 0x36
org.kde.kdegraphics.gwenview.lib: libjpeg fatal error

org.kde.kdegraphics.gwenview.lib: Unable to use preview of  "A8447200.3FR"
[kjs@localhost FotoAlbumHasselblad]$


On MAG7 where Gwenview works fine (the Notify has no effect) the result is :
Code: Select all
kjs@localhost FotoAlbumHasselblad]$ gwenview A8447200.3FR
inotify_add_watch(/etc/fstab) failed: (Permission denied)
[kjs@localhost FotoAlbumHasselblad]$



I realize I have been focused on Document Viewer which is the default viewer being used when clicking on a .3FR image file and Gwenview which I used in MAG7 .

Now I realized I could try to look for another image viewer.
Shotwell was already indstalled and works well with good quality.
KDE/Plasma showFoto I had to install. Has more features and good quality
Both takes a little longer to load an image than Gwenview on MAG7 .

Other applications providing very good image quality :
Darktable a complete photographic image editor . Not intended for quick and easy looking though an image collection.
RawTherapee is similar.
I can not say which one is the better for professional use, but as an importer of RAW image files into GIMP I prefer to use Darktable .

UFRaw : can convert Raw files (.3FR) to TIFF or JPEG.
digiKam : a complete Photo Management Program with powerfull features stored in a database. This gives too much overhead for me.

Other tested on another MAG8 installation giving low image quality : :
nomacs : many features but can only show a thumbnail of 320 x 240 .
Image Viewer : (do not remember how it was installed) works like nomacs
Now I am quite sure that the .3FR file contains thumbnail of 320 x 240 and that is what is shown like wise in Document Viewer.

So reading/decoding .3FR image files in very good quality in MAG8 at present is done by :
Darktable, RawTherapee, UFRaw, digiKam, Shotwell and showFoto.
Note that digiKam and showFoto is KDE/Plasma applications.

As a replacement for Gwenview I will choose between Shotwell and showFoto.

I am prepared to do some more testing in order to find what is the problem with Gwenview.
Because other KDE/Plasma applications works fine so should Gwenview.

In any case - thanks doktor5000.

Regards.
kajosim
 
Posts: 52
Joined: Feb 22nd, '17, 00:55

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby kajosim » Jul 10th, '21, 09:13

Hi again.

This morning I had an idea:
I tried using an JPEG file on MAG8 which works fine :

Code: Select all
[kjs@localhost FotoAlbumHasselblad]$ gwenview A8447200.jpeg
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-nikon-nrw"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-samsung-srw"
[kjs@localhost FotoAlbumHasselblad]$



There is no man-info for Gwenview so I tried :
Code: Select all
[kjs@localhost FotoAlbumHasselblad]$ gwenview --help-all
Usage: gwenview [options] url
An Image Viewer

Options:
  -h, --help                           Displays help on commandline options.
  --help-all                           Displays help including Qt specific
                                       options.
  -v, --version                        Displays version information.
  --author                             Show author information.
  --license                            Show license information.
  --desktopfile <file name>            The base file name of the desktop entry
                                       for this application.
  -f, --fullscreen                     Start in fullscreen mode
  -s, --slideshow                      Start in slideshow mode
  --qmljsdebugger <value>              Activates the QML/JS debugger with a
                                       specified port. The value must be of
                                       format port:1234[,block]. "block" makes
                                       the application wait for a connection.
  --platform <platformName[:options]>  QPA plugin. See QGuiApplication
                                       documentation for available options for
                                       each plugin.
  --platformpluginpath <path>          Path to the platform plugins.
  --platformtheme <theme>              Platform theme.
  --plugin <plugin>                    Additional plugins to load, can be
                                       specified multiple times.
  --qwindowgeometry <geometry>         Window geometry for the main window,
                                       using the X11-syntax, like 100x100+50+50.
  --qwindowicon <icon>                 Default window icon.
  --qwindowtitle <title>               Title of the first window.
  --reverse                            Sets the application's layout direction
                                       to Qt::RightToLeft (debugging helper).
  --session <session>                  Restores the application from an earlier
                                       session.
  --display <display>                  Display name, overrides $DISPLAY.
  --name <name>                        Instance name according to ICCCM
                                       4.1.2.5.
  --nograb                             Disable mouse grabbing (useful in
                                       debuggers).
  --dograb                             Force mouse grabbing (even when running
                                       in a debugger).
  --visual <id>                        ID of the X11 Visual to use.
  --geometry <geometry>                Alias for --windowgeometry.
  --icon <icon>                        Alias for --windowicon.
  --title <title>                      Alias for --windowtitle.

Arguments:
  url                                  A starting file or folders
[kjs@localhost FotoAlbumHasselblad]$


I do not know how to proceed to identify the problem.

Regards.
kajosim
 
Posts: 52
Joined: Feb 22nd, '17, 00:55

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby doktor5000 » Jul 10th, '21, 16:03

Can you post the output of file for such a .3fr file ? E.g.
Code: Select all
file A8447200.3FR
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: MGA8 Plasma, Gwenview can not view RAW image

Postby kajosim » Jul 11th, '21, 00:00

The result is :

Code: Select all
[kjs@localhost FotoAlbumHasselblad]$ file A8447200.3FR
A8447200.3FR: TIFF image data, little-endian, direntries=26, height=240, bps=328, compression=none, PhotometricIntepretation=RGB, manufacturer=Hasselblad, model=Hasselblad 500 mech., orientation=upper-left, width=320
[kjs@localhost FotoAlbumHasselblad]$


The height=240 must be for the included thumpnail picture.

Using okteta to view a .3FR and a TIFF file I can note thaT for both images the first 5 hex-character is "49 49 2A 00 00" in ASCII "II..." .So I think .3FR "pretends" to be a TIFF.

As I wrote yesterday I have found an alternative, so I will try to mark it (WORKAROUND)
The result this morning indicates that the problem may also affect some NIKON cameras. I am prepared to continue testing.

Regards.
kajosim
 
Posts: 52
Joined: Feb 22nd, '17, 00:55


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron