From 7f9a189a95af7442332d3838b20c88aeace89197 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Tue, 5 Nov 2024 15:23:13 +0100 Subject: [PATCH] set ImageItem properties after encoding an image --- libheif/context.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libheif/context.cc b/libheif/context.cc index 0d2b5c9dc4..cfae6e9bce 100644 --- a/libheif/context.cc +++ b/libheif/context.cc @@ -1216,6 +1216,12 @@ Result> HeifContext::encode_image(const std::shared_p } } + std::vector> properties; + err = m_heif_file->get_properties(output_image_item->get_id(), properties); + if (err) { + return err; + } + output_image_item->set_properties(properties); m_heif_file->set_brand(encoder->plugin->compression_format, output_image_item->is_miaf_compatible());