FAILURE MAP
← Case archive

FA-79178 / Image orientation metadata / Member archive

Canvas rotation for tag 8 shifts by the height · case 03

Counter-clockwise photos are cut off at the bottom of the canvas.

Member previewVariant 3 · 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: tag 8 translation 0{"canvas": [1031, 3582], "matrix": [0, -1, 1, 0, 0, 1031]}{"canvas": [1031, 3582], "matrix": [0, -1, 1, 0, 0, 3582]}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 ↗