# Gimp.Image.prototype.metadata_save_filter

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

Filters the metadata retrieved from the image with Gimp.Image.prototype.metadata_save_prepare, 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

This is an alternative to gimp_image_metadata_save_finish when you want to save metadata yourself and you need only filtering processing.

Since 3.0

mime_type

  The saved file's mime-type

metadata

  The metadata to export

flags

  Flags to specify what of the metadata to save

file

  The file image was saved to or NULL if file was not saved yet

Returns

  Filtered metadata or NULL in case of failure.

  Use g_object_unref() when returned metadata are no longer needed