Skip to content

Commit

Permalink
set ImageItem properties after encoding an image
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 5, 2024
1 parent efbfbdc commit 7f9a189
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libheif/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,12 @@ Result<std::shared_ptr<ImageItem>> HeifContext::encode_image(const std::shared_p
}
}

std::vector<std::shared_ptr<Box>> 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());
Expand Down

0 comments on commit 7f9a189

Please sign in to comment.