[gimp/metadata-wip-rebased: 15/20] libgimp: some #if 0 metadata serialize roundtrip test code
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-wip-rebased: 15/20] libgimp: some #if 0 metadata serialize roundtrip test code
- Date: Thu, 24 Oct 2013 21:32:17 +0000 (UTC)
commit 665eb578e07ce04b05601fb4b280c832aef02dd7
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 23 19:52:39 2013 +0200
libgimp: some #if 0 metadata serialize roundtrip test code
libgimp/gimpmetadata.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/libgimp/gimpmetadata.c b/libgimp/gimpmetadata.c
index eedbb47..63aec25 100644
--- a/libgimp/gimpmetadata.c
+++ b/libgimp/gimpmetadata.c
@@ -65,6 +65,28 @@ gimp_image_metadata_load (gint32 image_ID,
gdouble yres;
GimpUnit unit;
+#if 0
+ {
+ gchar *xml = gimp_metadata_serialize (metadata);
+ GimpMetadata *new = gimp_metadata_deserialize (xml);
+ gchar *xml2 = gimp_metadata_serialize (new);
+
+ FILE *f = fopen ("/tmp/gimp-test-xml1", "w");
+ fprintf (f, "%s", xml);
+ fclose (f);
+
+ f = fopen ("/tmp/gimp-test-xml2", "w");
+ fprintf (f, "%s", xml2);
+ fclose (f);
+
+ system ("diff -u /tmp/gimp-test-xml1 /tmp/gimp-test-xml2");
+
+ g_free (xml);
+ g_free (xml2);
+ g_object_unref (new);
+ }
+#endif
+
comment = gexiv2_metadata_get_tag_string (metadata,
"Exif.Photo.UserComment");
if (! comment)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]