Bug 498234

Summary: rotated jxl images are displateyed without rotation
Product: [Applications] digikam Reporter: Jannis <b1w35561bsbjsfsf>
Component: Plugin-DImg-QImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: aacid, kdelibs-bugs-null, metzpinguin
Priority: NOR    
Version First Reported In: 8.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.6.0
Sentry Crash Report:
Attachments: example jxl with wrong orientation

Description Jannis 2025-01-03 23:35:47 UTC
Created attachment 177088 [details]
example jxl with wrong orientation

SUMMARY
When viewing an jxl image in digikam (Flatpak V8.5.0, KDE Frameworks 6.9.0, QT 6.8.1) images are always shown as landscape inside the image preview. Rotating the image has an effect on the thumbnail image but not on the preview.

This behavior does not show in the 8.5.0. Snap version of digikam. It could be related to #497297 and/or #469627

STEPS TO REPRODUCE
1. Open digikam flatpak (newest version, older versions coudn´t display the jxl at all, see #497297)
2. Open the attached Image DSC02704.jxl
3. Switch to Preview by double clicking on the Image

OBSERVED RESULT
The Image is on its side (landscape mode)

EXPECTED RESULT
The Image should be in portrait mode like shown in the thumbnail.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-12-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6600 CPU @ 3.30GHz
Memory: 15,0 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530

ADDITIONAL INFORMATION
I assumed this is related to the frameworks-kimageformats, since this was responsible for the jxl display in the first place but please let me know, if this is the wrong topic.
Comment 1 Maik Qualmann 2025-01-04 20:59:15 UTC
Git commit 08b938340a60987795c3fed4f6cd857a4747398d by Maik Qualmann.
Committed on 04/01/2025 at 20:58.
Pushed by mqualmann into branch 'master'.

disable auto transformation in the QImage loader
FIXED-IN: 8.6.0

M  +1    -1    NEWS
M  +1    -5    core/dplugins/dimg/qimage/dimgqimageloader_load.cpp

https://invent.kde.org/graphics/digikam/-/commit/08b938340a60987795c3fed4f6cd857a4747398d
Comment 2 Maik Qualmann 2025-01-04 21:01:10 UTC
This was not a KImageFormats plugin bug, digiKam transforms images itself and expects to receive a non-automatically transformed image.

Maik