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



commit 7452c4bc6e87adb302850661db6f54db2e0fb1e8
Author: Daniel Novomeský <dnovomesky gmail com>
Date:   Thu Jun 16 16:18:29 2022 +0200

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

 plug-ins/common/file-heif.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index 84b37dcaa0..5dcf351cb4 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -1344,6 +1344,12 @@ load_image (GFile              *file,
               }
           }
 
+        gexiv2_metadata_try_set_orientation (GEXIV2_METADATA (metadata),
+                                             GEXIV2_ORIENTATION_NORMAL, NULL);
+        gexiv2_metadata_try_set_metadata_pixel_width (GEXIV2_METADATA (metadata),
+                                                      width, NULL);
+        gexiv2_metadata_try_set_metadata_pixel_height (GEXIV2_METADATA (metadata),
+                                                       height, NULL);
         gimp_image_metadata_load_finish (image, "image/heif",
                                          metadata, flags);
       }


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