[tracker] tracker-extract: NB# 155064: width and height of TIFF files not filled in



commit eacdc913841b67be5adf967047770699e10d0c2c
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Feb 5 11:30:55 2010 +0100

    tracker-extract: NB# 155064: width and height of TIFF files not filled in

 src/tracker-extract/tracker-extract-tiff.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index 775c146..837f8a7 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -325,6 +325,10 @@ extract_tiff (const gchar          *uri,
 	}
 #endif /* HAVE_EXEMPI */
 
+	if (!tiff_data.imagewidth)
+		tiff_data.imagewidth = get_value (image, TIFFTAG_IMAGEWIDTH, TIFF_TAGTYPE_UINT32);
+	if (!tiff_data.imagelength)
+		tiff_data.imagelength = get_value (image, TIFFTAG_IMAGELENGTH, TIFF_TAGTYPE_UINT32);
 	if (!tiff_data.artist)
 		tiff_data.artist = get_value (image, TIFFTAG_ARTIST, TIFF_TAGTYPE_STRING);
 	if (!tiff_data.copyright)



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