FAILURE MAP
← Case archive

FA-78868 / Image orientation metadata / Member archive

Pixel bake keeps stored dimensions for transpose tags · case 03

Tag 5 and 7 images are cropped or indexed out of shape because output width and height are not exchanged.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Bake an EXIF-style orientation tag (1..8) into a row-major pixel grid so the result displays upright. Tags 2/4 mirror horizontally/vertically, 3 rotates 180, 6 rotates 90 clockwise, 8 rotates 90 counter-clockwise, 5 transposes and 7 transverses; tags outside 1..8 are treated as 1. Tags 5..8 swap the output width and height.

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: dimension swap tag set 0[[24, 14], [23, 13], [24, 14]][[24, 14, 4], [23, 13, 3]]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 ↗