Bug 344987

Summary: Portrait images shown as landscape
Product: [Applications] gwenview Reporter: gothicknight
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: Edward.Viesel, gothicknight, kde, myriam, ondra, thomas
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description gothicknight 2015-03-09 19:24:06 UTC
Hi,

When viewing JPG photos from my Canon DSLR the pictures in portrait orientation are shown in landscape orientation but only in the top half and not top to bottom as if the display rotation code failed.

Rotating the photo once fixes the picture display to correct portrait mode and rotating once again shows the picture using the full window to display it in landscape mode.

Reproducible: Always

Steps to Reproduce:
1. Open a portrait imagem from Dolphin (in dolphin it previews correctly).
2. Let gwenview open the JPG
3. Rotating the image once;
4. Rotating the image once again;

Actual Results:  
1. Gewnview opens the selected photo.
2.The image appears rotated in landscape mode but resized to match portrait aspect ratio.
3. Produces the correct image view in portrait mode.
4. Displays it in correct landscape mode (using the full window).

Expected Results:  
1. N/A
2. The image should be shown in correct EXIF orientation from the top to the bottom of the window.
3. Should rotate to landscape orientation;
4. Should rotate back to portrait orientation;

This only happens in photos directly from my Canon DSLR.

If I rotate the image, save it and close gwenview. it then appears upside down in dolphin preview and when opened again in gwenview.

If I rotate the image again and save it, it now appears correctly in portrait mode.
Comment 1 Patrick 2015-04-25 15:12:41 UTC
I can confirm I have exactly the same issue and identical behaviour on the Steps to Reproduce.

Gwenview 5.0.0 pre
Kubuntu 15.04 64bit
KDE Plasma 5.2.2
Kernel 3.19.0-15-generic
Photos from Canon EOS 600D
Comment 2 Ondřej Hruška 2015-04-25 16:01:33 UTC
I reported this too and my bug 346384 was closed as duplicate, so yeah. I'm having the exact same issues. Arch Linux, XFCE, Gwenviewer 5.0.0 & git version, Linux 64bit
Comment 3 Christoph Feck 2015-05-02 22:08:45 UTC

*** This bug has been marked as a duplicate of bug 343044 ***
Comment 4 Edward Viesel 2015-05-20 19:24:21 UTC
Kubuntu 15.04, Gwenview 5.0.0pre.

Yes, identical problem here too. Fully reproducible. This is still happening today with a completely updated Kubuntu system.