Handle stds:exif C2PA assertions

This commit is contained in:
N-Pex 2025-10-22 15:03:56 +02:00
parent ed79b3186a
commit 5c559a98ad
3 changed files with 128 additions and 66 deletions

View file

@ -97,38 +97,6 @@ const updateDetails = () => {
return deg;
};
// Make and model
let makeAndModel = "";
const make = getSimpleValue("Make");
const model = getSimpleValue("Model");
if (make) {
makeAndModel += make;
}
if (model) {
if (makeAndModel.length > 0) {
makeAndModel += ", ";
}
makeAndModel += model;
}
if (makeAndModel.length > 0) {
d.push({
icon: "$vuetify.icons.ic_exif_device_camera",
title: t("file_mode.cc_source"),
value: makeAndModel,
});
}
// Creation date
const date = getSimpleValue("DateTimeOriginal");
const dateOffset = getSimpleValue("OffsetTimeOriginal");
if (date) {
d.push({
icon: "$vuetify.icons.ic_exif_time",
title: t("file_mode.cc_capture_timestamp"),
value: dayjs(Date.parse(date + (dateOffset ? dateOffset : ""))).format("lll"),
});
}
// Location
try {
const lat = toDegrees(getSimpleValue("GPSLatitude"), getSimpleValue("GPSLatitudeRef") ?? "");