Commit 2f13932b authored by Debarshi Ray's avatar Debarshi Ray

tracker-extract-xmp: Fix extraction of orientation values 3 and 4

They had gotten swapped around. See:
http://www.cipa.jp/std/documents/e/DC-010-2012_E.pdf

https://bugzilla.gnome.org/show_bug.cgi?id=758295
parent b16977df
......@@ -301,9 +301,9 @@ fix_orientation (const gchar *orientation)
} else if (orientation && g_ascii_strcasecmp (orientation, "2") == 0) {
return "nfo:orientation-top-mirror";
} else if (orientation && g_ascii_strcasecmp (orientation, "3") == 0) {
return "nfo:orientation-bottom-mirror";
return "nfo:orientation-bottom";
} else if (orientation && g_ascii_strcasecmp (orientation, "4") == 0) {
return "nfo:orientation-bottom";
return "nfo:orientation-bottom-mirror";
} else if (orientation && g_ascii_strcasecmp (orientation, "5") == 0) {
return "nfo:orientation-left-mirror";
} else if (orientation && g_ascii_strcasecmp (orientation, "6") == 0) {
......
......@@ -107,8 +107,8 @@ static ExifNepomuk METERING_MODES [] = {
static ExifNepomuk ORIENTATIONS [] = {
{"2", "nfo:orientation-top-mirror"},
{"3", "nfo:orientation-bottom-mirror"},
{"4", "nfo:orientation-bottom"},
{"3", "nfo:orientation-bottom"},
{"4", "nfo:orientation-bottom-mirror"},
{"5", "nfo:orientation-left-mirror"},
{"6", "nfo:orientation-right"},
{"7", "nfo:orientation-right-mirror"},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment