# alt-text-for-image-with-text: published commands and their exit codes (Koldflux, November 28, 2026) # Full output of every run is in test-results.txt. Server: Ubuntu, node 24, Playwright via PLAYWRIGHT_MODULE, python3 (Pillow 13.0.0 in a venv for run 3). # Exit codes are the commands' own (no pipes). published: bash test-run.sh "Mount Two Top, Henrys Lake Mountains, Idaho.jpg" run3 exit=0 (run 3: all 8 first-try runs, both crop retries, 3 edge inputs; numbers identical to run 1) edge: no Pillow, work dir copied from run 3 (run 4) -> "crop.py failed (Pillow missing?)", old crops removed first and not reused, first-try numbers identical, exit=3 edge: no arguments -> usage, exit=2 edge: missing photo -> "missing or empty photo: edge/nofile.jpg", exit=1 edge: tool, 0-byte file named .png -> "The text could not be read." (page keeps working) edge: tool, text file with a Windows line break named .png -> "The text could not be read." edge: tool, plain white 800x600 PNG -> empty box, "0 words · engine confidence 0 of 100 · 0.1 s · low confidence: check every line" published: python3 score.py cases.json tool-runs.json exit=0 edge: no arguments -> usage, exit=1 edge: missing tool-runs file -> "cannot read input ... No such file or directory", exit=1 edge: empty file -> "cannot read input ... Expecting value", exit=1 edge: JSON with CRLF line ends -> reads normally, exit=0 edge: Latin-1 bytes (not UTF-8) -> "cannot read input ... can't decode byte 0xff", exit=1 edge: non-ASCII file name (résultats.json) -> reads normally, exit=0 edge: file starting with a UTF-8 BOM -> reads normally, exit=0 edge: run id with no case -> "skipped: run 'nosuch' has no case in cases.json", exit=0 edge: run with null text -> scored as empty text (CER 100.0% on the control), exit=0 edge: blank picture (empty known text, cases-edge.json) -> "no reference text; the tool returned 0 characters", exit=0 published: python3 crop.py exit=0 (boxes (258, 450, 1122, 567) and (40, 760, 1040, 990); md5 4a8efed0..., 9f50b25b... on both machines) edge: no arguments -> usage, exit=1 edge: folder without the images -> "cannot open the input images", exit=1 edge: without Pillow -> "Pillow is missing: pip install pillow", exit=1 published: node render.cjs cases.json exit=0 edge: missing cases file -> "cannot read ... ENOENT", exit=1 edge: empty photo file -> "missing or empty photo", exit=1 edge: without Playwright -> "Playwright is missing: npm i playwright, or set PLAYWRIGHT_MODULE to its path", exit=1 published: node run-tool.cjs cases.json exit=0 edge: empty cases file -> "cannot read ... Unexpected end of JSON input", exit=1 edge: without Playwright -> "Playwright is missing: npm i playwright, or set PLAYWRIGHT_MODULE to its path", exit=1 published: python3 chart.py chart.html exit=0 edge: no arguments -> usage, exit=1