libgimp: new gimp_image_metadata_save_filter API

This new function is an alternative to existing
gimp_image_metadata_save_finish, when you want to save metadata
yourself and you need only filtering processing.
It returns filtered metadata allowing the caller
to save the finalized metadata via other means
(via native format’s library for example)
This API can be used to support metadata saving of image formats
not directly supported by gexiv2/exiv2.
This commit is contained in:
Daniel Novomeský 2022-03-15 13:01:45 +01:00
parent 55f4177815
commit ff87bc8d4d
3 changed files with 97 additions and 26 deletions

View file

@ -43,6 +43,12 @@ void gimp_image_metadata_load_finish (GimpImage *image,
GimpMetadata * gimp_image_metadata_save_prepare (GimpImage *image,
const gchar *mime_type,
GimpMetadataSaveFlags *suggested_flags);
GimpMetadata * gimp_image_metadata_save_filter (GimpImage *image,
const gchar *mime_type,
GimpMetadata *metadata,
GimpMetadataSaveFlags flags,
GFile *file,
GError **error);
gboolean gimp_image_metadata_save_finish (GimpImage *image,
const gchar *mime_type,
GimpMetadata *metadata,