Get lens name from Nikon Z series images

This commit is contained in:
Lawrence Lee 2023-04-02 16:59:24 -07:00
parent 294c6167ae
commit 533a05cd9d
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -320,7 +320,9 @@ FramesData::FramesData(const Glib::ustring &fname, time_t ts) :
//orientation = pos->print(&exif);
}
if (find_tag(Exiv2::lensName)) {
if (find_exif_tag("Exif.NikonLd4.LensIDNumber")) {
lens = validateUft8(pos->print(&exif));
} else if (find_tag(Exiv2::lensName)) {
lens = validateUft8(pos->print(&exif));
auto p = pos;
if (find_exif_tag("Exif.CanonFi.RFLensType") && find_exif_tag("Exif.Canon.LensModel")) {