Learn a photograph's shape from its header

A panorama the merge did not make, a stitch from another program or a
phone's sweep, never had a width or height in the catalog, so it could
never be given a wide cell. The header read that dates a photograph now
records its size as it is seen, orientation applied, alongside the date.
This commit is contained in:
2026-09-28 19:57:37 -04:00
parent 6050a8e703
commit 3b7d7129ff
3 changed files with 40 additions and 1 deletions
+2
View File
@@ -712,6 +712,7 @@ fn metadata(
captured_at: md.captured_at,
captured_offset: md.captured_offset,
camera: crate::library::camera_label(md.make.as_deref(), md.model.as_deref()),
size: MetadataFound::upright_size(&md),
lens: md.lens.map(|l| l.trim().to_string()),
iso: md.iso,
},
@@ -724,6 +725,7 @@ fn metadata(
camera: None,
lens: None,
iso: None,
size: None,
}
}
};