Bug 498026

Summary: All NEF files shown blurred in viewer after upgrade to 6.0.0
Product: [Applications] kphotoalbum Reporter: Franz Graf <franz.graf>
Component: ViewerAssignee: KPhotoAlbum Bugs <kphotoalbum-bugs-null>
Status: REPORTED ---    
Severity: normal CC: franz.graf, johannes, tl
Priority: NOR    
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Franz Graf 2024-12-29 16:59:03 UTC
SUMMARY
NEF files shown blurred in viewer after upgrade to 6.0.0.

STEPS TO REPRODUCE
1. Use a previous database including NEF files (from Feb 2023).
2. Open with kphotoalbum version 6.0.0.
3. Double-click a NEF file to see it in viewer.

OBSERVED RESULT
NEF files are shown blurred, because being shown in low resolution.

EXPECTED RESULT
NEF files are shown unblurred and in full resolution.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.1-arch1-Watanare-T2-1-t2 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
With version 6.0.0, when started from konsole, there are no error messages.

After downgrading to kphotoalbum-5.13.0, marble-common-24.08.3, and marble-24.08.3, the NEF files show unblurred and in full resolution, as expected.

As a remark, image attributes width and height in index.xml show folllowing combinations for Nikon D750 (resolution 
6032x4032, as confirmed with exiftool):
120 160
160 120
2008 3008
3008 2008
4032 6032
6032 4032
752 502
It is unclear how the abnormal values came to exist. Especially 160x120 with ratio 4:3, when actual ratio is 3:2. However, the blurred view resp. low resolution in view exists independent of values width and height.
Comment 1 Tobias Leupold 2024-12-30 18:56:57 UTC
Hi, thanks for your bug report!

I'm pretty sure this is an issue of the underlying libraries.

Using the NEF file you provided in Bug #497996, using Gwenview, I see exactly what you describe: a 160x120px image. I also tried it with KGeoTag, and I see a quite blurred image, upscaled to what I set as the preview size (most probably from this 160x120px preview).

Using another NEF file someone provided whilst I added partial RAW support back then, I get at least 320x212px, and with a CR2 file (also provided back then), I get the full resolution.

In KGeoTag, I only use Qt's functionality to read images. This is possible for CR2 and NEF because they are based on TIFF IIRC. So I suppose it's not even the libkdcraw Qt 6 version which causes this problem (as it's simply not used by KGeoTag in contrast to KPhotoAlbum), but Qt itself.
Comment 2 Johannes Zarl-Zierl 2025-10-20 19:58:06 UTC
Hi Franz,
Since you already checked the other bug, could you check if this one is also fixed in git master?
Thanks, and cheers,
  Johannes
Comment 3 Franz Graf 2025-10-23 09:46:09 UTC
Hello Johannes,
With the git version (v6.1.0-29-g8fa1ad568) a NEF file of 3040x2014 pixels shows now perfectly in the viewer.
However, when I look at the index.xml file, it has the line:
<image file="DSC_1677.NEF" startDate="2010-08-24T00:57:05" md5sum="a989bb659f254fb2e3673882211e633a" width="160" height="120" tags_1="6"/>
The wrong size is also shown when I use "Show exif info and file metadata" from the Viewer.

My current software versions are:
Operating System: Arch Linux 
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.2-arch1-Watanare-T2-1-t2 (64-bit)
Graphics Platform: Wayland