From 2e2cbd40fa51e828fd5fed3b3eab36adff26957f Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Wed, 22 Mar 2023 23:10:02 +0800 Subject: [PATCH] feat: add two new exif property support --- app/metadatamodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/metadatamodel.cpp b/app/metadatamodel.cpp index 9712f3c..9350000 100644 --- a/app/metadatamodel.cpp +++ b/app/metadatamodel.cpp @@ -124,6 +124,8 @@ void MetadataModel::setFile(const QString &imageFilePath) QStringLiteral("Exif.Photo.MaxApertureValue"), tr("Max aperture")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"), QStringLiteral("Exif.Photo.MeteringMode"), tr("Metering mode")); + appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"), + QStringLiteral("Exif.Photo.SubjectDistance"), tr("Subject distance")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"), QStringLiteral("Exif.Photo.Flash"), tr("Flash mode")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"), @@ -131,6 +133,8 @@ void MetadataModel::setFile(const QString &imageFilePath) appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"), QStringLiteral("Exif.Photo.LensModel"), tr("Lens model")); + appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"), + QStringLiteral("Exif.Photo.Contrast"), tr("Contrast")); appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"), QStringLiteral("Exif.Photo.BrightnessValue"), tr("Brightness")); appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),