Skip to content

Screenshots and privacy

jejellyroll-fr edited this page Aug 13, 2026 · 3 revisions

Screenshots and privacy

Screenshots of fpdb show a database, and a database shows the people you played against. Their screen names are their identity at that room; publishing them in a wiki page, a bug report or a forum post is publishing information about someone who was not asked.

This page is how to produce screenshots without doing that. It applies to wiki pages, to issues, and to anything else that leaves your machine.

A publishable screenshot made entirely from fictional demo players

The three cases

What you are capturing What to do
An fpdb window only — reports, graphs, replayer, preferences, workbench Use the demo database. No redaction needed, nothing to check.
The HUD over a real table window Redact. The poker client draws real names and fpdb cannot change that.
A log, a path, an error dialog Read it before posting. No tool helps here; the leak is in the text.

Case 1 — the demo database

tools/make_demo_db.py invents a database. A fixed roster of obviously fictional players — NitPickerNed, CallingStation, ManiacMarcel — is dealt by a seeded generator and imported into a database of its own, with its own configuration file.

uv run python tools/make_demo_db.py
uv run python fpdb_3_legacy/fpdb.pyw -c ~/fpdb-demo/HUD_config.xml

Everything on screen from that point on is invented, so every fpdb window can be captured as-is. Options:

uv run python tools/make_demo_db.py --hands 5000 --out /tmp/shots
uv run python tools/make_demo_db.py --seed 1234        # a different set of hands
uv run python tools/make_demo_db.py --generate-only    # write the histories, do not import

Some things worth knowing about the generated data:

  • The players have distinct, fixed styles, so a HUD or a report shows contrast rather than fifteen shades of the same regular. A nit sits at 13/11 and a maniac at 67/44 because they were written that way.
  • The pot arithmetic is exact and showdowns are adjudicated by a real evaluator, so the derived statistics are internally consistent — the numbers in a screenshot are not nonsense.
  • Sessions are spread over four months, so the graphs and the date filters have something to work with.
  • Not modelled: all-ins and side pots, tournaments, and any game but 6-max No-Limit Hold'em cash. Needing a screenshot of a tournament report is a reason to extend the generator, not a reason to fall back on real hands.

Do not use tests/fixtures/ or regression-test-files/ for this. Both carry genuine screen names from real hand histories. They are test corpora, not demo data.

Your own configuration and your own database are untouched: the script copies HUD_config.xml and repoints the copy.

Case 2 — redacting a HUD screenshot

There is no way around this one: the table window belongs to the poker client, and the client draws real names. Capture, then paint them out.

uv run python tools/anonymize_screenshot.py table.png -o table-wiki.png \
    --box 120,340,180,22 --box 410,190,180,22

Boxes are x,y,width,height in pixels from the top-left. --relative reads them as fractions of the image instead, which survives rescaling the capture.

Why the tool does not blur

Gaussian blur is a linear low-pass filter: it attenuates detail, it does not discard it. Text is the easiest thing in the world to bring back from it — a short screen name, drawn from a small alphabet in a known font, can be recovered by deconvolution or simply by re-rendering candidates until one blurs to the same pixels. Fine-grained pixelation is the same argument with a box filter: if a glyph spans several blocks, the block averages still encode which glyph it was.

So the tool offers two modes and neither is a blur:

Mode What it does
fill (default) Paints the region a solid colour. Nothing survives.
pixelate Reduces the region to at most four blocks per axis. For when a flat rectangle would hide the layout you are trying to show.

--block is a floor, not a setting: the block size is enlarged as needed so a region is never left with a readable grid. Asking for 8-pixel blocks on a 400-pixel name plate would produce a thumbnail of the name, so the tool refuses to.

Both modes rewrite the pixels, so the redaction survives cropping, re-encoding and being screenshotted again.

The tool also strips EXIF, ICC and PNG text chunks on the way out — capture tools record the machine name, the window title and sometimes the file path in there, and none of it is visible in the picture you reviewed.

The checklist

A screen name is not the only thing that leaks. Before publishing any capture:

  • Opponent screen names — table window, HUD blocks, popups, notes, chat
  • Your own screen name and your hero alias
  • Account balance, stack sizes tied to a real account, cashier windows
  • Table and tournament IDs — they identify a specific hand at a specific room, and therefore everyone who was in it
  • Avatars — as identifying as a name
  • Window titles and taskbars, which carry all of the above
  • File paths — /home/yourname/…, C:\Users\yourname\… — visible in the import tab, in Site Settings, and in every log line
  • Database host, user, and any connection string in File → Databases…
  • Email addresses in logs and error dialogs

For logs pasted as text rather than captured as an image, the same list applies and no tool will help — read the paste.

Issue and feature-request requirement

Every bug report and feature request must state the FPDB version concerned. Copy it from Help → About, or provide the exact release tag or commit. The GitHub forms reject an empty version field so the report has a usable baseline.

Raw .raw, .pcap, hand-history files and unfiltered logs are not safe to publish just because a game was captured. Publish only the smallest reviewed normalized or summary output, and anonymize screenshots before uploading them.

For contributors

Wiki images live in Images/. When you add one:

  • Prefer a demo-database capture. If a page needs a redacted HUD shot, say in the page that it is redacted, so nobody wonders what the black rectangles are.
  • Keep the source capture out of the repository. Commit the redacted file only — git history is forever, and an unredacted image deleted in a later commit is still in the history.
  • Name files for what they show, not for the room you happened to use.

Clone this wiki locally