Bug 359198

Summary: Rotating portrait photos in GwenView produces wrong results
Product: [Applications] gwenview Reporter: Valdas <zmogas>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: myriam, nate
Priority: NOR    
Version: Other (add details in bug description)   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: original photo
photo rotated CCW
photo rotated CW
Test #2: original pic
Test #2: pic rotated 90 CCW
Test #2: pic rotated 180 CCW
Test #2: pic rotated 270 CCW

Description Valdas 2016-02-09 19:56:36 UTC
Using version 15.08.3

See attached photo "original.jpg". It is in portrait position.
If I load it in to GW, rotate it counter clockwise, save, close and open it again then it appears  rotated by 180 degrees (file "rotated_ccw.jpg"). And if I rotate clockwise then result is as no rotation is applied (file "rotated_cw.jpg").

Reproducible: Always
Comment 1 Valdas 2016-02-09 19:57:26 UTC
Created attachment 97116 [details]
original photo
Comment 2 Valdas 2016-02-09 19:58:12 UTC
Created attachment 97117 [details]
photo rotated CCW
Comment 3 Valdas 2016-02-09 19:58:55 UTC
Created attachment 97118 [details]
photo rotated CW
Comment 4 Valdas 2016-12-25 20:20:23 UTC
 Attaching another example:
 - original photo "pic_original.jpg";
 - original photo rotated one time 90 degrees CCW and saved to file named "pic_rotated_90_ccw.jpg".
 - original photo rotated two times 90 degrees CCW and saved to file named "pic_rotated_180_ccw.jpg".
 - original photo rotated three times 90 degrees CCW and saved to  file named "pic_rotated_270_ccw.jpg".
 As you can see results are not as expected.
Comment 5 Valdas 2016-12-25 20:39:59 UTC
Created attachment 102991 [details]
Test #2: original pic
Comment 6 Valdas 2016-12-25 20:40:34 UTC
Created attachment 102992 [details]
Test #2: pic rotated 90 CCW
Comment 7 Valdas 2016-12-25 20:41:00 UTC
Created attachment 102993 [details]
Test #2: pic rotated 180 CCW
Comment 8 Valdas 2016-12-25 20:41:24 UTC
Created attachment 102994 [details]
Test #2: pic rotated 270 CCW
Comment 9 Nate Graham 2017-11-09 19:35:48 UTC

*** This bug has been marked as a duplicate of bug 346565 ***