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:
parent
a4b0801646
commit
2d412d7404
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user