# commands.log: thumbnail-text-readable-on-mobile, November 28, 2026 (server: Ubuntu, Node 24.21.0, Python 3, ffmpeg; Playwright Chromium) # Each published command, with its exit code. Run from the workspace root; the scripts sit in src/. published: bash src/test-run.sh in/sourdough.jpg final (cases.py, render.cjs, shrink.sh, strip.py, ffmpeg 96 px copy, run-tool.cjs x3, score.py x3) exit=0 published: same command earlier the same day into out2 (repeat run; words read identical in all 92 cells, see test-results.txt) exit=0 published: node ytsizes.cjs (YouTube layout, logged out, writes ytsizes.json; yt-widths.json keeps only the 16:9 tile sizes, no third-party image addresses) exit=0 published: python3 src/chart.py final/out/results-strip.csv final/out/chart.html && node src/html2png.cjs final/out/chart.html chart.png 1200 1100 exit=0 published: python3 src/montage.py final/in final/out/montage.html && node src/html2png.cjs final/out/montage.html montage.png 1200 1200 exit=0 published: node src/shot.cjs final/in/s100-band-strip-w220.png tool-screenshot-to-text.png exit=0 published: python3 src/summarize.py final out2 yt-widths.json edge.log test-results.txt exit=0 published: bash src/edge.sh > edge.log exit=0 edge: cases.py no args exit=1 usage: python3 cases.py outdir edge: render.cjs missing photo exit=1 missing or empty photo: edge/nope.jpg edge: render.cjs empty photo exit=1 missing or empty photo: edge/empty.jpg edge: render.cjs empty cases json exit=1 cannot read edge/empty.json (missing, empty or not JSON): Unexpected end of JSON input edge: render.cjs CRLF cases json exit=0 rendered blank-photo {"box":[48,360,0,0],"lineBoxes":[[48,360,0,0]],"lines":0,"font":"\"DejaVu Sans\"","color":"rgb(243, 230, 200)","capPx": edge: shrink.sh missing dir exit=2 usage: bash shrink.sh imagedir [widths...] (folder missing: 'edge/nope') edge: shrink.sh non-ASCII file name exit=0 wrote 1 shrunk copies edge: shrink.sh ffmpeg not on PATH exit=1 ffmpeg is missing edge: strip.py missing meta exit=1 cannot read edge/nope.json (missing, empty or not JSON): [Errno 2] No such file or directory: 'edge/nope.json' edge: strip.py empty meta exit=1 cannot read edge/empty.json (missing, empty or not JSON): Expecting value: line 1 column 1 (char 0) edge: run-tool.cjs empty cases json exit=1 cannot read edge/empty.json (missing, empty or not JSON): Unexpected end of JSON input edge: score.py missing tool runs exit=1 cannot read input (missing, empty, not UTF-8 JSON or wrong shape): [Errno 2] No such file or directory: 'edge/nope.json' edge: score.py empty tool runs exit=1 cannot read input (missing, empty, not UTF-8 JSON or wrong shape): Expecting value: line 1 column 1 (char 0) edge: chart.py empty csv exit=1 cannot read edge/empty.csv (missing, empty or not a results file): no result rows edge: chart.py missing csv exit=1 cannot read edge/nope.csv (missing, empty or not a results file): [Errno 2] No such file or directory: 'edge/nope.csv' edge: montage.py missing image dir exit=1 missing or empty image: edge/nope/s40-band-w360.png edge: html2png.cjs missing html exit=2 usage: node html2png.cjs in.html out.png width height (in.html missing or empty) edge: shot.cjs empty image exit=2 usage: node shot.cjs image.png out.png [base] (image missing or empty) edge: test-run.sh missing photo exit=1 missing or empty photo: edge/nope.jpg edge: run-tool.cjs tool gives no result within 60 s: the run is recorded with alert "no result within 60 s" and a screenshot instead of stopping the batch (seen once in a trial run on a 177 x 29 px strip; the retry read it in 0.2 s; 0 alerts in the final run) edge: CRLF input: edge/crlf.json is cases.json with Windows line endings (122 of 122 lines end in CR LF); render.cjs read it and rendered all 12 cases edge: non-ASCII file name: shrink.sh made brød-ü-w220.png from brød-ü.png published: in="thumbnail.png"; for w in 360 220 168; do ffmpeg -loglevel error -y -i "$in" -vf "scale=$w:-2:flags=lanczos" "thumbnail-w$w.png"; done (the loop from the page, verify round 1 fix: file name in a variable, -loglevel error; run in bash on a copy of the 100 px band thumbnail, 1280 x 720) exit=0 wrote 360x202, 220x124, 168x94; thumbnail-w220.png byte-identical to the earlier run of the old loop edge: same loop with in="thumbnail.jpg" in a folder holding only thumbnail.jpg: exit=0, 360x202, 220x124, 168x94 edge: same loop run by /bin/sh (dash) instead of bash, in="thumbnail.jpg": exit=0, three files edge: in left as "thumbnail.png" in a folder holding only thumbnail.jpg: ffmpeg "Error opening input files: No such file or directory", exit=254 (the old loop hard-coded thumbnail.png and failed the same way for JPG users) edge: 4:3 input (960 x 720): exit=0, 360x270, 220x166, 168x126; -2 keeps the input's own proportions, not 16:9 (the page now says so) edge: 320 x 180 input (under YouTube's 640 px minimum): exit=0, 360x202 enlarged without a warning (the page now says so) edge: file name with a space or non-ASCII letters: keep the quotes around "$in" and "thumbnail-w$w.png"; shrink.sh made brød-ü-w220.png from brød-ü.png with the same ffmpeg filter # Verify round 1 fix, November 28, 2026: rescoring with the reader's rule (no new tool runs) published: python3 src/score.py final/cases$k.json final/out/tool-runs$k.json final/in/meta.json results$k.csv (k = "", -strip, -neg; same for the repeat out2 with cases.json and cases-band.json) exit=0 metric controls: TFIRST counts as FIRST, XXLOAF and SST and LOAr do not OK words read changed in 3 of 44 strip cells and 0 of 48 whole cells: s40-band-strip 360 2/3 -> 3/3 (IFIRST), s40-band-strip 168 1/3 -> 2/3 (SFIRST), s64-band-strip 220 2/3 -> 3/3 (TFIRST); the exact count stays in the words_exact column. Repeat: 48 of 48 and 44 of 44 cells still identical. edge: two stray letters glued to a word: a run with text "XXFIRST SOURDOUGH LOAF" for s64-band-strip at 220 scored 2/3 (FIRST not counted), exit=0 edge: a run whose id has no case: "skipped: run 'nope' has no case in final/cases-strip.json", the other run still scored, exit=0 edge: missing tool-runs file: "cannot read input (missing, empty, not UTF-8 JSON or wrong shape)", exit=1 published: python3 src/summarize.py final out2 yt-widths.json edge.log test-results.txt (on the rescored CSVs) exit=0 published: python3 src/chart.py results-strip.csv chart.html && PLAYWRIGHT_MODULE= node src/html2png.cjs chart.html chart.png 1200 1124 exit=0 published: trial-outline-tool-runs.json = the 20 outline strip runs from the trial run (out1), ids renamed -band -> -strip, file paths as they were scored with the same rule at 360/220/168: every word in 2 of 15 reads (64 px at 220, 150 px at 168); the final dark band: 12 of 15