Skip to content

merge-ink-pipelines: reject multi-page TIFF labels - #1987

Merged
bruniss merged 1 commit into
ScrollPrize:merge-ink-pipelinesfrom
woahwhattheheck:zz-sol-21/villa-1738-multipage-merge
Oct 21, 2026
Merged

bruniss merged 1 commit into
ScrollPrize:merge-ink-pipelinesfrom
woahwhattheheck:zz-sol-21/villa-1738-multipage-merge

Conversation

@woahwhattheheck

Copy link
Copy Markdown
Contributor

Refs #1738.

The main copy is already being handled separately in #1889. This PR covers only the diverged merge-ink-pipelines implementation named in #1738.

This takes the issue's smallest fail-closed option for this branch:

  • reject TIFFs whose TiffFile contains anything other than one page before the page axis can be mistaken for image data;
  • use the validated first page for the normal TIFF load path;
  • apply the same single-page guard before the tiled streaming metadata path reads page 0.

Current compare is one commit / one runtime file (ink-detection/koine_machines/preprocessing/create_label_zarrs.py), +14/-1, ahead 1 / behind 0 from merge-ink-pipelines@3ea17f54a9b3d5fd1aaf73e1d2c8386dbaa9f30e.

No claim is made here that the separate main implementation is fixed by this PR, and no new test run is claimed.

@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

@woahwhattheheck is attempting to deploy a commit to the scroll Team on Vercel.

A member of the Team first needs to authorize it.

@bruniss
bruniss merged commit 47a9c37 into ScrollPrize:merge-ink-pipelines Oct 21, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants