[gthumb] Don't write metadata to tiff files - bug 583889
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Don't write metadata to tiff files - bug 583889
- Date: Thu, 28 May 2009 10:34:50 -0400 (EDT)
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]