FAILURE MAP
← Case archive

FA-79195 / Image orientation metadata / Member archive

Canvas keeps stored size for transpose tags · case 05

Tag 5 and 7 images are clipped into a canvas with the stored aspect ratio.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input [w, h, tag]. Produce the canvas size and the 2D affine [a, b, c, d, e, f] (x' = a*x + c*y + e, y' = b*x + d*y + f, continuous coordinates, so mirroring an extent e maps x to e - x) that draws the stored image upright. Tags 5..8 use a [h, w] canvas; invalid tags are treated as 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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: canvas dimension swap 0{"canvas": [3098, 2016], "matrix": [0, 1, 1, 0, 0, 0]}{"canvas": [2016, 3098], "matrix": [0, 1, 1, 0, 0, 0]}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 ↗