Gimp.Image.metadata_save_prepare
@accepts(Gimp.Image, unicode, Gimp.MetadataSaveFlags)
@returns(Gimp.Metadata)
def metadata_save_prepare(self, mime_type, suggested_flags):
# Python wrapper for gimp_image_metadata_save_prepare()
Gets the image metadata for saving it using Gimp.Image.metadata_save_finish.
The suggested_flags are determined from what kind of metadata (Exif, XMP, ...) is actually present in the image and the preferences for metadata exporting. The calling application may still update @available_flags, for instance to follow the settings from a previous export in the same session, or a previous export of the same image. But it should not override the preferences without a good reason since it is a data leak.
The suggested value for Gimp.MetadataSaveFlags.thumbnail is determined by whether there was a thumbnail in the previously imported image.
Since 2.10
- self
The original image
- mime_type
The saved file's mime-type
- suggested_flags
Suggested default values for the @flags passed to Gimp.Image.metadata_save_finish
- Returns