Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

tools: the screendiff page names an --out that is one of the screenshots

xbshengac4abe0da0d9
diff --git a/tools/screendiff.md b/tools/screendiff.md
index 32daa4b41..6c8e0cdfa 100644
--- a/tools/screendiff.md
+++ b/tools/screendiff.md
@@ -13,14 +13,14 @@ tools/venv/bin/python tools/screendiff.py shots/before.png shots/after.png \
|---|---|---|
| 0 | `identical (1 region masked): ...` | No pixel outside the masks differs by more than 8 |
| 1 | `different: N pixels differ ..., inside x0,y0,x1,y1` | Find out why before posting |
-| 2 | an error | Different sizes, a box outside the picture, an unreadable screenshot (the `before` or the `after` one is named, and a picture that was cut short counts), an `--out` or `--diff` it cannot write, and one that was given an empty name - `--out "$OUT"` with `OUT` unset: leave the option out to compare without writing it |
+| 2 | an error | Different sizes, a box outside the picture, an unreadable screenshot (the `before` or the `after` one is named, and a picture that was cut short counts), an `--out` or `--diff` it cannot write, one that names either of the two screenshots - the pair would be written over the picture being compared - and one that was given an empty name - `--out "$OUT"` with `OUT` unset: leave the option out to compare without writing it |
| Option | Notes |
|---|---|
| `--mask x0,y0,x1,y1` | Left out of the comparison. Repeatable. Only for what changes by itself: clock, greeting, stats line, wallpaper caption. |
| `--blur x0,y0,x1,y1` | Pixelated in both screenshots of the pair. Repeatable. For the Wi-Fi name, account pictures. It doesn't affect the comparison. |
-| `--out PNG` | The labelled pair, at `--scale` (default 0.5). |
-| `--diff PNG` | The differing pixels, white on black. |
+| `--out PNG` | The labelled pair, at `--scale` (default 0.5). A name that is the `before` or the `after` file is refused before either is read, so a mistyped `--out` cannot overwrite a screenshot. |
+| `--diff PNG` | The differing pixels, white on black. The same rule: neither screenshot may be named. |
| `--labels` | The two labels over the pair, comma-separated (`Before,After` by default); anything but two is refused. |
| `--threshold N` | Channel difference to ignore (default 8, compression noise). |