[tracker/tracker-1.6] tracker-extract-tiff: Fix extraction of orientation values
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.6] tracker-extract-tiff: Fix extraction of orientation values
- Date: Wed, 18 Nov 2015 17:39:49 +0000 (UTC)
commit 63a14b9b95b301ab00d08a922637703c88ade31e
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 18 17:10:39 2015 +0100
tracker-extract-tiff: Fix extraction of orientation values
TIFFTAG_ORIENTATION values range from 1 to 8, not 0 to 7. See:
https://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
https://bugzilla.gnome.org/show_bug.cgi?id=758293
src/tracker-extract/tracker-extract-tiff.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index 3f09bfe..52ca512 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -140,14 +140,14 @@ get_orientation (TIFF *image)
if (TIFFGetField (image, TIFFTAG_ORIENTATION, &data)) {
switch (data) {
- case 0: return g_strdup ("nfo:orientation-top");
- case 1: return g_strdup ("nfo:orientation-top-mirror");
- case 2: return g_strdup ("nfo:orientation-bottom");
- case 3: return g_strdup ("nfo:orientation-bottom-mirror");
- case 4: return g_strdup ("nfo:orientation-left-mirror");
- case 5: return g_strdup ("nfo:orientation-right");
- case 6: return g_strdup ("nfo:orientation-right-mirror");
- case 7: return g_strdup ("nfo:orientation-left");
+ case 1: return g_strdup ("nfo:orientation-top");
+ case 2: return g_strdup ("nfo:orientation-top-mirror");
+ case 3: return g_strdup ("nfo:orientation-bottom");
+ case 4: return g_strdup ("nfo:orientation-bottom-mirror");
+ case 5: return g_strdup ("nfo:orientation-left-mirror");
+ case 6: return g_strdup ("nfo:orientation-right");
+ case 7: return g_strdup ("nfo:orientation-right-mirror");
+ case 8: return g_strdup ("nfo:orientation-left");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]