Show lens used on Panasonic cameras

This commit is contained in:
topu
2017-04-17 17:12:06 +02:00
parent 931db7ab4e
commit f2b0efecce
5 changed files with 185 additions and 5 deletions

View File

@@ -157,7 +157,8 @@ void ImageData::extractInfo ()
"SAMSUNG",
"Mamiya",
"MOTOROLA",
"Leaf"
"Leaf",
"Panasonic"
}) {
if (make.find(corp) != std::string::npos) { // Simplify company names
make = corp;
@@ -482,6 +483,17 @@ void ImageData::extractInfo ()
lens = eq->getTag ("LensType")->valueToString ();
}
}
} else if (mnote && !make.compare (0, 9, "Panasonic")) {
if (mnote->getTag ("LensType")) {
std::string panalens = mnote->getTag("LensType")->valueToString();
if (panalens.find("LUMIX") != Glib::ustring::npos) {
lens = "Panasonic " + panalens;
}
else {
lens = panalens;
}
}
}
} else if (exif->getTag ("DNGLensInfo")) {
lens = exif->getTag ("DNGLensInfo")->valueToString ();