Gimp.ProcedureConfig.prototype.save_metadata

function save_metadata(exported_image: Gimp.Image, file: Gio.File): void {
    // Gjs wrapper for gimp_procedure_config_save_metadata()
}
  

Note: There is normally no need to call this function because it's already called from [method@ProcedureConfig.end_export].

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.

This function syncs back config's export properties to the metadata's [flags@MetadataSaveFlags] and writes the metadata to file using [method@Image.metadata_save_finish].

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].

Since 3.0

exported_image

the image that was actually exported

file

the file exported_image was written to