Bug 432789 - Imported Pictures (RAW, CR3, Canon M6 Mark II) doesn´t have the rigth Rotation.
Summary: Imported Pictures (RAW, CR3, Canon M6 Mark II) doesn´t have the rigth Rotation.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-RAW (show other bugs)
Version: 7.2.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-11 09:39 UTC by Ette
Modified: 2021-02-14 18:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ette 2021-02-11 09:39:55 UTC
SUMMARY
All Pictures in RAW-Format, which where taken in Portrait-Direction, are not in the right Rotation.

STEPS TO REPRODUCE
1. Shot a Picture
2. Import from SD-Card to Digikam
3. 

OBSERVED RESULT
Picture is Displayed in Landscape

EXPECTED RESULT
Picture is Displayed in Portrait

SOFTWARE/OS VERSIONS
macOS: 10.14.6 

ADDITIONAL INFORMATION
JPEGs are correct rotated
Comment 1 Ette 2021-02-11 09:47:28 UTC
Don´t know, how to upload an Example.
It´s too big.
Comment 2 caulier.gilles 2021-02-11 10:08:02 UTC
You need to use a cloud storage and paste link here...

But i think the problem is in libraw engine. Look this report :

https://github.com/LibRaw/LibRaw/issues/389

Yes, it's about NEF file but i suspect a common problem in metadata parser from libraw.

Gilles Caulier
Comment 3 Ette 2021-02-11 12:34:36 UTC
Thanks for your Answer, Gilles
I´m new to KDE (GitHub). What can I do to support solving the Bug?
Ette
Comment 4 Maik Qualmann 2021-02-11 12:40:16 UTC
I don't think we need any test images at the moment. The CR3 images I received from users do not currently contain an orientation flag. I'm sure it worked with a previous version of libraw. My NEF images show no abnormalities.

Maik
Comment 5 Maik Qualmann 2021-02-14 18:40:04 UTC
Git commit 86d42b35d1f1b7baac7d113e3015ae9a8eb0047d by Maik Qualmann.
Committed on 14/02/2021 at 18:38.
Pushed by mqualmann into branch 'master'.

decode libraw orientation flag
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +35   -0    core/libs/metadataengine/dmetadata/dmetadata_libraw.cpp

https://invent.kde.org/graphics/digikam/commit/86d42b35d1f1b7baac7d113e3015ae9a8eb0047d
Comment 6 Maik Qualmann 2021-02-14 18:48:36 UTC
Note: When a new version with this change is available, the metadata must be re-read so that the thumbnail and image are displayed in the correct orientation.

Maik