New function to return encoded Exiv2::Blob
Hello, I am author of https://github.com/novomesk/gimp-avif-plugin
GIMP uses gexiv2 which uses exiv2 to save metadata of supported image formats. Unfortunately new image formats are not going to be supported by exiv2 likely because of some patent Paranoia (see https://github.com/Exiv2/exiv2/issues/1066 )
libavif and libheif can save images with metadata directly but I need to have data from Exiv2::Blob first.
Metadata in GIMP are available as GExiv2Metadata *
Right now I am using following trick ( https://github.com/novomesk/gimp-avif-plugin/blob/master/src/file-avif-exif.cpp ) to obtain private pointer Exiv2::Image::AutoPtr image
so I can call
Exiv2::ExifParser::encode
and copy the Exif data afterwards.
I would appreciate if you could create similar function in gexiv2 which would be useful for new image formats not supported by exiv2 yet, so I don't have to use the trick with defining _GExiv2MetadataPrivate
If you have an idea how to resolve the problem in better way, please let me know.
Regards, Daniel