From 533a05cd9d3d17a818fac10d71dbea76fa3ccf2f Mon Sep 17 00:00:00 2001 From: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com> Date: Sun, 2 Apr 2023 16:59:24 -0700 Subject: [PATCH] Get lens name from Nikon Z series images --- rtengine/imagedata.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtengine/imagedata.cc b/rtengine/imagedata.cc index 73c51b103..636838548 100644 --- a/rtengine/imagedata.cc +++ b/rtengine/imagedata.cc @@ -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")) {