[gnome-photos/gnome-3-22] base-item: Fix the orientation of exported and shared items



commit 02d1ef58b4a7eccdc1a97c5172a198afd37b2c4d
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Feb 19 01:18:17 2017 +0100

    base-item: Fix the orientation of exported and shared items
    
    Since we already apply the embedded orientation when loading the item,
    we need to remove it from the metadata when exporting and sharing.
    Otherwise, the orientation will be applied twice when the resulting
    image is decoded by another program.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778925

 src/photos-base-item.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 25988c0..ab62602 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -1564,6 +1564,7 @@ photos_base_item_save_metadata_in_thread_func (GTask *task,
       goto out;
     }
 
+  gexiv2_metadata_set_orientation (metadata, GEXIV2_ORIENTATION_NORMAL);
   export_path = g_file_get_path (file);
 
   error = NULL;


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