FA-79337 / Image orientation metadata / Member archive
Padded sidecar text orientation is rejected · case 02
Sidecars written with a leading space are ignored.
Case contract
A photo manager reconciles the embedded orientation with an XMP sidecar. Values are valid if they are integers 1..8 or strings that are exactly one digit 1..8 after trimming. Policy "sidecar" prefers the sidecar, "embedded" prefers the file, and "newest" (also used for unknown policies) prefers the sidecar when both are valid and sidecar_mtime >= file_mtime; the other valid value is the fallback, then 1.
Why this case matters
Camera, phone and scanner images carry an orientation hint separately from the stored pixels; galleries, thumbnailers, editors and upload pipelines must interpret it consistently or photos appear sideways, mirrored or doubly rotated.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: text orientation parsing 0 | 5 | 8 | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗