Capture OCR screenshots at 2x scale

Tesseract routinely drops small caption text at native resolution — the
weather panel's detail labels fail the WIND assertion with the text plainly
on screen. Let the compositor upscale the capture instead.
This commit is contained in:
Ryan Hughes
2026-08-30 16:30:51 -04:00
parent d3a5e69162
commit 9ca8f90e91
+3 -1
View File
@@ -36,7 +36,9 @@ screen_contains() {
local text="$1"
local snapshot="/tmp/omarchy-acceptance-ocr-$$.png"
if ! timeout 10 grim "$snapshot" 2>/dev/null; then
# Capture at 2x scale: tesseract routinely drops small caption text at
# native resolution (the weather panel's detail labels, for one).
if ! timeout 10 grim -s 2 "$snapshot" 2>/dev/null; then
rm -f "$snapshot"
return 1
fi