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

This commit is contained in:
Daniel Novomeský 2022-06-16 16:18:29 +02:00
parent 4b52709725
commit 7452c4bc6e
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}