From aa356443d308e848fcaa35d0470095f7a293aa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Fri, 5 Jan 2024 16:15:30 +0100 Subject: [PATCH] Convert aperture and focal length from mm to meters. --- libxisf.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libxisf.cpp b/libxisf.cpp index 19ab82b..86fd1de 100644 --- a/libxisf.cpp +++ b/libxisf.cpp @@ -389,6 +389,10 @@ bool Image::addFITSKeywordAsProperty(const String &name, const String &value) { auto &c = fitsNameToPropertyIdTypeConvert.at(name); Property prop(c.first, variantFromString(c.second, value)); + + if(name == "APTDIA" || name == "FOCALLEN") + prop.value.value() /= 1000.0f; + updateProperty(prop); return true; }