From 58e26add76b7f476925572f573412855daed5979 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Fri, 9 Nov 2018 15:30:29 +0100 Subject: [PATCH] Fallback to 'UniqueCameraModel' tag if model is 'Unknown' --- rtengine/imagedata.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rtengine/imagedata.cc b/rtengine/imagedata.cc index 47bb0b490..892a9efed 100644 --- a/rtengine/imagedata.cc +++ b/rtengine/imagedata.cc @@ -156,6 +156,13 @@ FrameData::FrameData (rtexif::TagDirectory* frameRootDir_, rtexif::TagDirectory* model = "Unknown"; } + if (model == "Unknown") { + tag = newFrameRootDir->findTag("UniqueCameraModel"); + if (tag) { + model = tag->valueToString(); + } + } + tag = newFrameRootDir->findTagUpward("Orientation"); if (tag) { orientation = tag->valueToString ();