metadata: do not copy exif rotate info from the original image -- it might just be plain wrong

(cherry picked from commit 8f14684588b3c0aec1aab37f4225c99954f6f587)
This commit is contained in:
Alberto Griggio 2019-05-19 22:55:28 +02:00 committed by Lawrence Lee
parent a4b0801646
commit 2d412d7404
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -187,6 +187,11 @@ void Exiv2Metadata::saveToImage(const Glib::ustring &path) const
dst->readMetadata();
if (image_.get()) {
dst->setMetadata(*image_);
auto it =
dst->exifData().findKey(Exiv2::ExifKey("Exif.Image.Orientation"));
if (it != dst->exifData().end()) {
dst->exifData().erase(it);
}
if (merge_xmp_) {
do_merge_xmp(dst.get());
}