metadata: fallback to Exif.Photo.LensModel for lenses unknown to exiv2

(cherry picked from commit 64e25471b003e302414d0cf48f64ccd1a988b454)
This commit is contained in:
Alberto Griggio
2022-03-21 01:09:50 -07:00
committed by Lawrence Lee
parent 09d72259e3
commit c7d5b5076d

View File

@@ -281,6 +281,10 @@ FramesData::FramesData(const Glib::ustring &fname) :
if (find_tag(Exiv2::lensName)) {
lens = validateUft8(pos->print(&exif)); // validateUft8 (#5923) still needed?
if (pos->count() == 1 && lens == std::to_string(pos->toLong()) &&
find_exif_tag("Exif.Photo.LensModel")) {
lens = validateUft8(pos->print(&exif)); // validateUft8 (#5923) still needed?
}
} else if (find_exif_tag("Exif.Photo.LensSpecification") && pos->count() == 4) {
const auto round =
[](float f) -> float