After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 615114 - some .CR2 (RAW) pictures are displayed mirrored
some .CR2 (RAW) pictures are displayed mirrored
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-07 23:27 UTC by Angel Abad
Modified: 2011-06-08 19:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Angel Abad 2010-04-07 23:27:21 UTC
In Ubuntu Lucid Jan-Christoph Borchardt reported:

EoG, Evince and gnome-raw-thumbnailer display a mirrored image for some CR2 RAW files. In F-Spot it is displayed correctly (see the attachment).

Attachment: http://launchpadlibrarian.net/42892903/IMG_4845.CR2

Launchpad ref: https://bugs.edge.launchpad.net/ubuntu/+source/eog/+bug/554036

Thanks!
Comment 1 Felix Riemann 2010-04-08 21:07:38 UTC
AFAIK Ubuntu doesn't install libopenraw's gdk-pixbuf plugin so what you see is
likely the included preview image which is loaded by the standard TIFF loader.

Still, the file seems to be corrupted. Both dcraw and libopenraw fail to open
it.
I also tried F-Spot on the latest Ubuntu snapshot and it failed as well.

*(posting this into the right bug now)*
Comment 2 Felix Riemann 2011-05-27 20:12:37 UTC
So, is this still an issue?
Comment 3 sam tygier 2011-05-29 20:57:32 UTC
i see the flipping with EOG 2.32.1 in ubuntu 11.04 (and in shotwell, but not ufraw or f-spot).

there are some example files at http://trac.yorba.org/ticket/3508
Comment 4 Felix Riemann 2011-05-30 21:07:46 UTC
Reopening as I can see it using the example pictures now. Interestingly this seems to affect both the included TIFF preview (tested using TIFF loader) and the RAW image itself (tested using libopenraw).

Wondering.
Comment 5 Felix Riemann 2011-06-04 13:01:24 UTC
Forwarded to libopenraw's bug tracker as from the looks this is a bug there.

eog displays the image just like it gets it from the plugin/loader. The loader also doesn't make orientation information available which eog could use if we added support for the respective API.
Comment 6 Felix Riemann 2011-06-08 19:08:33 UTC
As you might have noticed, there latest libopenraw-loader code can provide us with the image's orientation now (Thanks, Hub! ;-) ). So I just added code to eog to try GdkPixbuf's "orientation"-value as a fallback if no Exif data is available. When autorotate is enabled this should then rotate the images correctly.

Emphasis: At the moment you'll need the latest libopenraw from git to see this work with RAW images!

commit 8ac825bea9ce49e500efd8ed94bd3177b03f9731
Author: Felix Riemann <>
Date:   Wed Jun 8 20:58:29 2011 +0200

    Use GdkPixbuf's "orientation" feature as fallback for autorotation
    
    Useful for formats where we don't support extracting the needed data
    ourselves (e.g TIFF) and if eog is compiled without libexif.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=548474
    https://bugzilla.gnome.org/show_bug.cgi?id=615114

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.