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:
@@ -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,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user