[gimp] libgimp: deactivate metadata flags without appropriate property in…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: deactivate metadata flags without appropriate property in…
- Date: Sat, 10 Sep 2022 20:28:06 +0000 (UTC)
commit b24d4c93e2b34759cddb050f0a72fd6241397f38
Author: Jehan <jehan girinstud io>
Date: Sat Sep 10 21:35:00 2022 +0200
libgimp: deactivate metadata flags without appropriate property in…
… gimp_procedure_config_save_metadata().
If you use gimp_procedure_config_save_metadata() or
gimp_procedure_config_end_export(), you don't really control the flags
and let the GimpProcedure API make somes choices for you, based on
various assumptions. One of them is that the procedure has specific
properties (named "save-*", either created manually or with the various
gimp_save_procedure_set_support_*() functions). So if you don't have
them, we should assume this format doesn't handle a given metadata
format and deactivate it.
For plug-ins with a different/specific logic, they are expected not to
use these helper functions. They would likely call lower level functions
such as gimp_image_metadata_save_finish() or the newer
gimp_image_metadata_save_filter(), where you control the metadata flags.
libgimp/gimpprocedureconfig.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/libgimp/gimpprocedureconfig.c b/libgimp/gimpprocedureconfig.c
index 0f458b2293..f6839b5c7e 100644
--- a/libgimp/gimpprocedureconfig.c
+++ b/libgimp/gimpprocedureconfig.c
@@ -861,6 +861,10 @@ gimp_procedure_config_save_metadata (GimpProcedureConfig *config,
else
config->priv->metadata_flags &= ~prop_flag;
}
+ else
+ {
+ config->priv->metadata_flags &= ~prop_flag;
+ }
}
if (! gimp_image_metadata_save_finish (exported_image,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]