Gimp.Image.prototype.metadata_save_finish

function metadata_save_finish(mime_type: String, metadata: Gimp.Metadata, flags: Gimp.MetadataSaveFlags, file: Gio.File): Boolean {
    // Gjs wrapper for gimp_image_metadata_save_finish()
}
  

Saves the metadata retrieved from the image with Gimp.Image.prototype.metadata_save_prepare to file, taking into account the passed flags.

Note that the image passed to this function might be different from the image passed to Gimp.Image.prototype.metadata_save_prepare, due to whatever file export conversion happened in the meantime

Since 2.10

mime_type

The saved file's mime-type

metadata

The metadata to write to file

flags

Flags to specify what of the metadata to save

file

The file image was saved to

Returns

Whether the save was successful.