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:
parent
8f362941a5
commit
9fd139efad
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue