Parse lens model data from DNG files; updated german translation
This commit is contained in:
@@ -180,7 +180,14 @@ void ImageData::extractInfo () {
|
||||
// guess lens...
|
||||
lens = "Unknown";
|
||||
|
||||
if (exif->getTag ("MakerNote")) {
|
||||
// Sometimes (e.g. DNG) EXIF already contains lens data
|
||||
if (exif->getTag ("LensModel")) {
|
||||
lens = exif->getTag ("LensModel")->valueToString ();
|
||||
} else if (exif->getTag ("LensInfo")) {
|
||||
lens = exif->getTag ("LensInfo")->valueToString ();
|
||||
} else if (exif->getTag ("DNGLensInfo")) {
|
||||
lens = exif->getTag ("DNGLensInfo")->valueToString ();
|
||||
} else if (exif->getTag ("MakerNote")) {
|
||||
rtexif::TagDirectory* mnote = exif->getTag ("MakerNote")->getDirectory();
|
||||
if (mnote && !make.compare (0, 5, "NIKON")) {
|
||||
bool lensOk = false;
|
||||
|
Reference in New Issue
Block a user