Gimp.ProcedureConfig.prototype.end_export

function end_export(exported_image: Gimp.Image, file: Gio.File, status: Gimp.PDBStatusType): void {
    // Gjs wrapper for gimp_procedure_config_end_export()
}
  

This is a variant of [method@ProcedureConfig.end_run] to be used by file export procedures using [class@SaveProcedure]. It must be paired with a call to [method@ProcedureConfig.begin_export] at the beginning of run().

It does everything [method@ProcedureConfig.begin_run] does but provides additional features to automate file export:

If status is Gimp.PDBStatusType.success, and [method@ProcedureConfig.begin_export] returned a [class@Metadata], this function calls [method@ProcedureConfig.save_metadata], which syncs back config's export properties to the metadata's [flags@MetadataSaveFlags] and writes metadata to file using [method@Image.metadata_save_finish].

Since 3.0

exported_image

the image that was actually exported

file

the Gio.File exported_image was written to

status

the return status of the [class@Procedure]'s run()