[f-spot] Fix orientation when creating derived versions.



commit d2a931a9ba19a9c07c729e98967d7cce258706ee
Author: Ruben Vermeersch <ruben savanne be>
Date:   Sat Sep 11 22:17:42 2010 +0200

    Fix orientation when creating derived versions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629377
    https://bugzilla.gnome.org/show_bug.cgi?id=627845

 src/Clients/MainApp/PixbufUtils.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Clients/MainApp/PixbufUtils.cs b/src/Clients/MainApp/PixbufUtils.cs
index 9330fe0..a9a8a7b 100644
--- a/src/Clients/MainApp/PixbufUtils.cs
+++ b/src/Clients/MainApp/PixbufUtils.cs
@@ -455,6 +455,9 @@ public static class PixbufUtils {
         using (var metadata_from = Metadata.Parse (source)) {
             using (var metadata_to = Metadata.Parse (destination)) {
                 metadata_to.CopyFrom (metadata_from);
+
+                // Reset orientation to make sure images appear upright.
+                metadata_to.ImageTag.Orientation = ImageOrientation.TopLeft;
                 metadata_to.Save ();
             }
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]