[tracker] Using the the right key for EXIF data in PNG extractor



commit b800841c88195de4656e80dd682b9c2b2ea7a7d1
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Feb 2 15:20:50 2010 +0100

    Using the the right key for EXIF data in PNG extractor

 src/tracker-extract/tracker-extract-png.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index aa1eaeb..c501eb6 100644
--- a/src/tracker-extract/tracker-extract-png.c
+++ b/src/tracker-extract/tracker-extract-png.c
@@ -168,9 +168,11 @@ read_metadata (png_structp png_ptr, png_infop info_ptr, const gchar *uri, Tracke
 
 #if defined(HAVE_LIBEXIF) && defined(PNG_iTXt_SUPPORTED)
 
-			/* TODO: I'm not certain this is the key for EXIF */
+			/* I'm not certain this is the key for EXIF. Using key according to
+			 * this document about exiftool:
+			 * http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/PNG.html#TextualData */
 
-			if (g_strcmp0 ("EXIF", text_ptr[i].key) == 0) {
+			if (g_strcmp0 ("Raw profile type exif", text_ptr[i].key) == 0) {
 				tracker_exif_read (text_ptr[i].text,
 				                   text_ptr[i].itxt_length, 
 				                   uri, &exif_data);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]