From 9fd139efadefd182a22e4b3c25cb92e36ae2cb4a Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Sun, 19 Feb 2017 01:32:30 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libgimp/gimpimagemetadata.c b/libgimp/gimpimagemetadata.c index cba7a7daf3..983ba7aeba 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