Bug 472372 - Can't preview DNG files, even with RAW support installed.
Summary: Can't preview DNG files, even with RAW support installed.
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kimageformats
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.109.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-18 22:20 UTC by Roke Julian Lockhart Beedell
Modified: 2024-05-14 18:38 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
An example DNG (which is unable to be previewed). (3.70 MB, application/x-xz)
2023-11-19 01:18 UTC, Roke Julian Lockhart Beedell
Details
Preview in Dolphin (59.03 KB, image/png)
2024-04-21 08:23 UTC, Mirco Miranda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2023-07-18 22:20:28 UTC
SUMMARY
Can't preview DNG files despite being able to view other types of RAW files.

STEPS TO REPRODUCE
1. Install kdegraphics-thumbnailers (https://discuss.kde.org/t/how-to-preview-dng-files-in-dolphin/2511/2?u=rokejulianlockhart).

OBSERVED RESULT
Can't preview the files in Dolphin.

EXPECTED RESULT
I should be able to (https://discuss.kde.org/t/how-to-preview-dng-files-in-dolphin/2511/4?u=rokejulianlockhart).

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230716
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.3-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Comment 1 Méven Car 2023-11-18 13:26:46 UTC
Please provide a DNG file concerned.
Comment 2 Roke Julian Lockhart Beedell 2023-11-19 01:18:18 UTC
Created attachment 163279 [details]
An example DNG (which is unable to be previewed).

(In reply to Méven Car from comment #1)
> Please provide a DNG file concerned.

Provided. Note:

```.log
RokeJulianLockhart@s1e8h4:~> sudo zypper install kdegraphics-thumbnailers
[sudo] password for root: 
Retrieving repository 'utilities' metadata ........................................................................................................................................................................................................................................[done]
Building repository 'utilities' cache .............................................................................................................................................................................................................................................[done]
Retrieving repository 'Packman' metadata ..........................................................................................................................................................................................................................................[done]
Building repository 'Packman' cache ...............................................................................................................................................................................................................................................[done]
Loading repository data...
Reading installed packages...
'kdegraphics-thumbnailers' is already installed.
No update candidate for 'kdegraphics-thumbnailers-23.08.3-1.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
```
Comment 3 Roke Julian Lockhart Beedell 2023-11-19 01:21:18 UTC
(In reply to `{third: "Beedell", first: "Roke"}`{.JSON5} from comment #2)
> Created attachment 163279 [details]
> An example DNG (which is unable to be previewed).
> 
> (In reply to Méven Car from comment #1)
> > Please provide a DNG file concerned.
> 
> Provided.

Oh gosh, I didn't check which it was. Don't look at the image too hard, or you might die of cringe. I do have other, more normal ones, if need be for whatever reason XD
Comment 4 Mirco Miranda 2024-04-21 08:23:45 UTC
Created attachment 168729 [details]
Preview in Dolphin

ii  kimageformat-plugins                                        5.107.0-3.1+b1                           amd64        additional image format plugins for QtGui
Comment 5 Mirco Miranda 2024-04-21 08:27:35 UTC
Even though I'm using a slightly older version of kimage-plugins I don't think it's a raw plugin issue.
Comment 6 Méven Car 2024-05-12 16:57:35 UTC
(In reply to Mirco Miranda from comment #5)
> Even though I'm using a slightly older version of kimage-plugins I don't
> think it's a raw plugin issue.

I am getting those logs from the file:

```
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.imageformats.tiff: "Unknown field with tag 33421 (0x828d) encountered"
qt.imageformats.tiff: "Unknown field with tag 33422 (0x828e) encountered"
qt.imageformats.tiff: "Unknown field with tag 33434 (0x829a) encountered"
qt.imageformats.tiff: "Unknown field with tag 33437 (0x829d) encountered"
qt.imageformats.tiff: "Unknown field with tag 34855 (0x8827) encountered"
qt.imageformats.tiff: "Unknown field with tag 36867 (0x9003) encountered"
qt.imageformats.tiff: "Unknown field with tag 37386 (0x920a) encountered"
qt.imageformats.tiff: "Unknown field with tag 37398 (0x9216) encountered"
qt.imageformats.tiff: "Unknown field with tag 50964 (0xc714) encountered"
qt.imageformats.tiff: "Unknown field with tag 50965 (0xc715) encountered"
qt.imageformats.tiff: "Unknown field with tag 51009 (0xc741) encountered"
qt.imageformats.tiff: "Unknown field with tag 51022 (0xc74e) encountered"
qt.imageformats.tiff: "Unknown field with tag 51041 (0xc761) encountered"
qt.imageformats.tiff: "Sorry, can not handle image with PhotometricInterpretation=32803"
```
Comment 7 Mirco Miranda 2024-05-13 18:16:41 UTC
(In reply to Méven Car from comment #6)
> (In reply to Mirco Miranda from comment #5)
> > Even though I'm using a slightly older version of kimage-plugins I don't
> > think it's a raw plugin issue.
> 
> I am getting those logs from the file:
> 
> ```
> qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
> qt.imageformats.tiff: "Unknown field with tag 33421 (0x828d) encountered"
> qt.imageformats.tiff: "Unknown field with tag 33422 (0x828e) encountered"
> qt.imageformats.tiff: "Unknown field with tag 33434 (0x829a) encountered"
> qt.imageformats.tiff: "Unknown field with tag 33437 (0x829d) encountered"
> qt.imageformats.tiff: "Unknown field with tag 34855 (0x8827) encountered"
> qt.imageformats.tiff: "Unknown field with tag 36867 (0x9003) encountered"
> qt.imageformats.tiff: "Unknown field with tag 37386 (0x920a) encountered"
> qt.imageformats.tiff: "Unknown field with tag 37398 (0x9216) encountered"
> qt.imageformats.tiff: "Unknown field with tag 50964 (0xc714) encountered"
> qt.imageformats.tiff: "Unknown field with tag 50965 (0xc715) encountered"
> qt.imageformats.tiff: "Unknown field with tag 51009 (0xc741) encountered"
> qt.imageformats.tiff: "Unknown field with tag 51022 (0xc74e) encountered"
> qt.imageformats.tiff: "Unknown field with tag 51041 (0xc761) encountered"
> qt.imageformats.tiff: "Sorry, can not handle image with
> PhotometricInterpretation=32803"
> ```

DNG is a TIFF container then the TIFF plugin also tries to open it (but saying that it doesn't understand DNG extensions).
Comment 8 Bug Janitor Service 2024-05-14 14:56:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kimageformats/-/merge_requests/218
Comment 9 Bug Janitor Service 2024-05-14 18:25:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/349
Comment 10 Méven Car 2024-05-14 18:30:13 UTC
It took me a minute to find the origin, but I suspect that other images format are concerned.
It could be fixed in kdegraphics-thumbnailers potentially.
Comment 11 Méven 2024-05-14 18:38:32 UTC
Git commit 3dd91a0e50f106b0302400705dc4684491917157 by Méven Car.
Committed on 14/05/2024 at 18:18.
Pushed by meven into branch 'master'.

thumbnail/imageplugin: add image/x-adobe-dng support

Since image/x-adobe-dng inherits from mime image/x-dcraw, prevents the
rawthumbnail plugin in kdegraphics-thumbnailers to render it, since this
one cannot render those files.

M  +2    -1    thumbnail/imagethumbnail.json

https://invent.kde.org/network/kio-extras/-/commit/3dd91a0e50f106b0302400705dc4684491917157