Parse lens model data from DNG files; updated german translation

This commit is contained in:
Oliver Duis
2010-11-02 20:50:06 +01:00
parent fe6ca539af
commit 7821ed9675
3 changed files with 18 additions and 5 deletions

View File

@@ -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;