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.
This commit is contained in:
Debarshi Ray 2017-02-19 01:32:30 +01:00
parent 8f362941a5
commit 9fd139efad

View file

@ -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