mirror of https://github.com/GNOME/gimp.git
plug-ins: ensure that metadata correspond to real image size
This commit is contained in:
parent
4b52709725
commit
7452c4bc6e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue