[gnome-photos] base-item: Fix the orientation of exported and shared items
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item: Fix the orientation of exported and shared items
- Date: Mon, 20 Feb 2017 06:58:12 +0000 (UTC)
commit bfc8e8940b0fda36a9f02bbe6b6983f7fd213522
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 f88704f..8cfcca7 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -1605,6 +1605,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]