[gthumb] Don't write metadata to tiff files - bug 583889



commit 639c00817125c86e73e0f416c9b37e92a53722f6
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Thu May 28 10:33:05 2009 -0400

    Don't write metadata to tiff files - bug 583889
---
 libgthumb/gth-exif-utils.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libgthumb/gth-exif-utils.c b/libgthumb/gth-exif-utils.c
index d1704b4..45dc3d1 100644
--- a/libgthumb/gth-exif-utils.c
+++ b/libgthumb/gth-exif-utils.c
@@ -441,7 +441,11 @@ update_and_save_metadata (const char *uri_src,
 		return;
 	}
 
-	write_metadata (from_fd->local_path, to_fd->local_path, metadata);
+	/* TIFF metadata writing is a bit flaky, it seems.
+	   Best avoided for now. */
+	if (mime_type_is (to_fd->mime_type, "image/jpeg") ||
+	    mime_type_is (to_fd->mime_type, "image/png"))
+		write_metadata (from_fd->local_path, to_fd->local_path, metadata);
 
 	file_data_unref (from_fd);
 	file_data_unref (to_fd);



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