commit 2e31019b05906051ad525f9621ba6a0d2c8cd2c9
parent 2f5031dea90be82248eebb40200295a10a9c3a58
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 9 Nov 2026 23:44:27 -0500
umtool: the lint reads a QR at 720p on the frame's short side (a 9:16 cut plays 720 wide), at the size the stacked deck draws it (140 px, a twocrop clip's 108)
The real-data vertical preview was refused: its 150 px deck QR read on the 1920 side was 1.31 px a module.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/umtool/report-to-video/lint.mjs b/umtool/report-to-video/lint.mjs
@@ -104,7 +104,7 @@ import { validateLook } from "./look.mjs";
// The stacked vertical deck (vertical-deck.mjs): what it leaves out, and a twocrop band drawn past its source's pixels.
import { stackedLeftOut } from "./modules/index.mjs";
import { verticalOn, verticalRender } from "./vertical.mjs";
-import { ENLARGE_WARN, clipTwoCrop, stackedOn, twoCropEnlargement } from "./vertical-deck.mjs";
+import { ENLARGE_WARN, STACKED_QR_SHARE, STACKED_QR_SMALL_SHARE, clipTwoCrop, stackedOn, twoCropEnlargement } from "./vertical-deck.mjs";
import { roomWindowWarnings } from "./room.mjs";
import { qrUrlFor } from "./render-cards.mjs";
import { archiveMomentUrl } from "./site-links.mjs";
@@ -181,7 +181,9 @@ export function qrsOf(manifest, { only = null, metaOf = null } = {}) {
if (d.qr?.show) {
for (const e of timeline) {
const url = deckQrUrl(e, provenance, { links: d.qr.links, meta: metaOf?.(e) ?? null });
- if (url) out.push({ where: `timeline ${e.id} (the deck's QR)`, id: e.id, source: "entry", url, px: Number(d.qr.size) });
+ // The stacked vertical deck draws its own (vertical-deck.mjs): the source block's, a twocrop clip's small one.
+ const px = stackedOn(render) ? Math.round(render.width * (clipTwoCrop(e) ? STACKED_QR_SMALL_SHARE : STACKED_QR_SHARE)) : Number(d.qr.size);
+ if (url) out.push({ where: `timeline ${e.id} (the deck's QR)`, id: e.id, source: "entry", url, px });
}
}
// `posts.qr: false` draws no code on any post card.
@@ -429,7 +431,9 @@ export function lintManifest(manifest, {
const errors = [];
const warnings = [];
const render = manifest.render ?? {};
- const height = Number(render.height) || 1080;
+ // A code's size at 720p is read off the frame's SHORT side: a 9:16 frame's width (a vertical cut plays 720 wide
+ // at 720p), a landscape frame's height as it always was.
+ const height = Math.min(Number(render.height) || 1080, Number(render.width) || Infinity);
// The social posts and the video's URL are not the video's: a problem there
// is said, never a refusal (release 29 G2's review).
warnings.push(...publishWarnings(whole));
diff --git a/umtool/report-to-video/vertical-deck.test.mjs b/umtool/report-to-video/vertical-deck.test.mjs
@@ -290,3 +290,17 @@ test("a landscape cut and a bare vertical draw what main drew, byte for byte", a
bare.post = v.verticalPostBox(vr);
assert.equal(md5(bare), MAIN.bare);
});
+
+test("the lint reads a vertical cut's QR at 720p on its short side, at the size the stacked deck draws it", async () => {
+ const { lintManifest, qrsOf } = await import("./lint.mjs");
+ const render = stacked();
+ const timeline = [
+ { type: "clip", id: "a", video: "v7eqa6e", channel: "the-quartering-rumble", start: 633.42, end: 644.16, citeUrl: "https://jeralyzer.pages.dev/channel/the-quartering-rumble/v7eqa6e?t=633" },
+ { type: "clip", id: "b", video: "v7eqa6e", start: 1, end: 5, citeUrl: "https://jeralyzer.pages.dev/channel/the-quartering-rumble/v7eqa6e?t=1", vertical: { layout: "twocrop", crops: [[0, 0, 0.6, 0.6], [0.6, 0.4, 0.4, 0.6]] } },
+ ];
+ const m = { slug: "s", render, provenance: { siteOrigin: "https://jeralyzer.pages.dev" }, timeline };
+ const qrs = qrsOf(m);
+ assert.deepEqual(qrs.map((q) => q.px), [140, 108]);
+ const l = lintManifest(m, { validators: false });
+ assert.ok(!l.errors.some((e) => e.includes("too small to scan")), l.errors.join("; "));
+});