<?xml version="1.0"?>
<page id="Gimp.ProcedureConfig.save_metadata"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.ProcedureConfig" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_procedure_config_save_metadata</api:name>
      <api:arg>
        <api:type>Gimp.ProcedureConfig</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.Image</api:type>
        <api:name>exported_image</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gio.File</api:type>
        <api:name>file</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.ProcedureConfig.save_metadata</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.ProcedureConfig, Gimp.Image, Gio.File)
@returns(none)
def save_metadata(self, exported_image, file):
    # Python wrapper for gimp_procedure_config_save_metadata()
  </code></synopsis>
  <p>Note: There is normally no need to call this function because it's
already called from [method@ProcedureConfig.end_export].</p>  <p>Only use this function if the [class@Metadata] returned by
[method@ProcedureConfig.begin_run] needs to be written at a specific
point of the export, other than its end.</p>  <p>This function syncs back <code>self</code>'s export properties to the
metadata's [flags@MetadataSaveFlags] and writes the metadata to <code>file</code>
using [method@Image.metadata_save_finish].</p>  <p>The metadata is only ever written once. If this function has been
called explicitly, it will do nothing when called a second time
from [method@ProcedureConfig.end_export].</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>self</code></title>
  <p>a <link xref="Gimp.ProcedureConfig"/></p>
</item>
<item>
<title><code>exported_image</code></title>
  <p>the image that was actually exported</p>
</item>
<item>
<title><code>file</code></title>
  <p>the file <code>exported_image</code> was written to</p>
</item>
</terms>

</page>
