[gimp] app: save XCF version 6 when the image has metadata



commit 95829c01cf45cd24922186dcd8a68989f502708f
Author: Michael Natterer <mitch gimp org>
Date:   Mon Oct 28 19:37:58 2013 +0100

    app: save XCF version 6 when the image has metadata

 app/xcf/xcf-save.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index ff28aa4..8626238 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -215,9 +215,14 @@ xcf_save_choose_format (XcfInfo   *info,
         save_version = MAX (3, save_version);
     }
 
+  /* need version 5 for high bit depth images */
   if (gimp_image_get_precision (image) != GIMP_PRECISION_U8_GAMMA)
     save_version = MAX (5, save_version);
 
+  /* need version 6 for new metadata */
+  if (gimp_image_get_metadata (image))
+    save_version = MAX (6, save_version);
+
   info->file_version = save_version;
 }
 


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