Bug 440260

Summary: Gwenview fails to open hdr file
Product: [Applications] gwenview Reporter: Evstifeev Roman <someuniquename>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: idontfeelcomfygivingyoumyemail
Priority: NOR    
Version First Reported In: 21.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: hdr image

Description Evstifeev Roman 2021-07-25 12:43:22 UTC
Created attachment 140324 [details]
hdr image

SUMMARY
Gwenview fails to open .hdr file, even with kimageformats installed.


STEPS TO REPRODUCE
1. Download attached file kloofendal_38d_partly_cloudy_1k.hdr
2. Open the attached file with gwenview

OBSERVED RESULT
Gwenview shows error: "Loading meta information failed."

EXPECTED RESULT
Gwenview should display image.

SOFTWARE/OS VERSIONS
kimageformats 5.84.0
Operating System: openSUSE Tumbleweed 20210723
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.2-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 4600H with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD RENOIR

ADDITIONAL INFORMATION
Image can be successfully displayed with Okular.
File thumbnail can be successfully generated and displayed in gwenview or dolphin file browser.

May be related: when I right-click the file in dolphin, and choose "properties", on general tab I see
 Type: HDR image
 Contents: MPSub subtitles
The wrong contents type resolution may be related to this gwenview issue?
Comment 1 Tony 2021-07-28 20:50:00 UTC
From Gwenview : Gwenview cannot display documents of type text/x-mpsub.

Running it from terminal and also registered in journalctl -ex : 

org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-hdr"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-mng"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-pic"
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"

So is not reading correctly the mime type.
Comment 2 Tony 2021-08-29 12:33:57 UTC
Okular opens the file ok, althought that may be irrelevant to this issue.
Comment 3 A Linux User 2025-08-19 16:22:39 UTC
Seems to be fixed, I could load the example hdr file just fine in Gwenview.