[gimp] Bug 778896 - Make effective use of gexiv2 to remove the orientation
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 778896 - Make effective use of gexiv2 to remove the orientation
- Date: Sun, 19 Feb 2017 20:36:46 +0000 (UTC)
commit 9fd139efadefd182a22e4b3c25cb92e36ae2cb4a
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Feb 19 01:32:30 2017 +0100
Bug 778896 - Make effective use of gexiv2 to remove the orientation
Usually, it is enough to reset the Exif.Image.Orientation and
Xmp.tiff.Orientation tags to neutralize the orientation of an image.
However, some cameras may use non-standard tags. In such cases, merely
setting the standard tags will make the metadata inconsistent. Hence,
it is better to use gexiv2_metadata_set_orientation because it will
take care of the non-standard tags.
libgimp/gimpimagemetadata.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libgimp/gimpimagemetadata.c b/libgimp/gimpimagemetadata.c
index cba7a7d..983ba7a 100644
--- a/libgimp/gimpimagemetadata.c
+++ b/libgimp/gimpimagemetadata.c
@@ -775,11 +775,7 @@ gimp_image_metadata_rotate_query (gint32 image_ID,
g_free (parasite_name);
gimp_image_metadata_rotate (image_ID, orientation);
-
- gexiv2_metadata_set_tag_string (GEXIV2_METADATA (metadata),
- "Exif.Image.Orientation", "1");
- gexiv2_metadata_set_tag_string (GEXIV2_METADATA (metadata),
- "Xmp.tiff.Orientation", "1");
+ gexiv2_metadata_set_orientation (metadata, GEXIV2_ORIENTATION_NORMAL);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]