[gimp/gimp-2-10] plug-ins: ensure that metadata correspond to real image size



commit 7fae471426a87c026c0581f946f331fdbcbf698f
Author: Daniel Novomeský <dnovomesky gmail com>
Date:   Thu Jun 16 14:02:45 2022 +0200

    plug-ins: ensure that metadata correspond to real image size

 plug-ins/common/file-heif.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index e103562157..49d6503230 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -1195,6 +1195,10 @@ load_image (GFile     *file,
 
         gexiv2_metadata_set_orientation (GEXIV2_METADATA (metadata),
                                          GEXIV2_ORIENTATION_NORMAL);
+        gexiv2_metadata_set_metadata_pixel_width (GEXIV2_METADATA (metadata),
+                                                  width);
+        gexiv2_metadata_set_metadata_pixel_height (GEXIV2_METADATA (metadata),
+                                                   height);
         gimp_image_metadata_load_finish (image_ID, "image/heif",
                                          metadata, flags,
                                          interactive);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]