Bug 436683

Summary: Honor EXIF image orientation metadata when adding images
Product: [Applications] tellico Reporter: Robby Stephenson <robby>
Component: generalAssignee: Robby Stephenson <robby>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 3.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 3.4.1
Sentry Crash Report:

Description Robby Stephenson 2021-05-06 11:28:26 UTC
From https://forum.kde.org/viewtopic.php?f=200&t=171004&sid=fee538ebb6fe89704a15dbdc9dfafdca

Tellico should recognize and account for image metadata indicating a rotation
Comment 1 Robby Stephenson 2021-05-06 11:31:58 UTC
Git commit ae5202f8868c3816bdaef78526865c972f4f4b74 by Robby Stephenson.
Committed on 06/05/2021 at 11:29.
Pushed by rstephenson into branch '3.4'.

Use QImageReader to account for image orientation metadata

Inside the QImage constructor, use QImageReader explicitly and set
autoTransform(). Add a unit test.

Benchmarks seems to say this loading approach may even be slightly
faster than before. Since the QImage:load() method uses QImageReader
internally as well, I don't believe there would be a downside to
creating a new QImageReader every time.
FIXED-IN: 3.4.1

M  +10   -5    src/images/image.cpp
A  +-    --    src/tests/data/img1.jpg
A  +-    --    src/tests/data/img2.jpg
M  +16   -1    src/tests/imagetest.cpp
M  +2    -1    src/tests/imagetest.h

https://invent.kde.org/office/tellico/commit/ae5202f8868c3816bdaef78526865c972f4f4b74