# Gimp.ProcedureConfig.end_export

    @accepts(Gimp.ProcedureConfig, Gimp.Image, Gio.File, Gimp.PDBStatusType)
    @returns(none)
    def end_export(self, exported_image, file, status):
        # Python 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 self's export properties to the metadata's [flags@MetadataSaveFlags] and writes metadata to file using [method@Image.metadata_save_finish].

Since 3.0

self

  a Gimp.ProcedureConfig

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()