Strip non-compliant subtitle from Steam capsule + library assets
Steam rejected our store page TWICE — first because capsules had no
Steam rejected our store page TWICE — first because capsules had no game name, then because they had the name PLUS “A CYBERPUNK DECKBUILDER” subtitle. Per the rules (https://partner.steamgames.com/doc/store/assets/rules), capsules are allowed only “game artwork + game name + official subtitle.” Steam treats descriptive genre text as marketing copy, not a subtitle, and rejects it.
tools/fix_steam_capsules.py:
- Auto-detects where the subtitle starts in the source logo by counting non-transparent pixels per row and finding clusters. Avoids hard-coded magic-number cutoffs that break if the logo layout ever changes.
- Wipes the subtitle band’s alpha to 0, auto-trims transparent margins, saves 07_library_logo_clean.png (1257x385).
- Composites the clean logo onto each clean capsule background at
sensible per-shape positions/scales:
- 01_main_capsule_1232x706_FINAL.png — landscape, top-third
- 02_small_capsule_462x174_FINAL.png — narrow horizontal
- 03_vertical_capsule_748x896_FINAL.png — portrait
- 05_library_capsule_600x900_FINAL.png — library portrait
- 15_header_capsule_920x430_FINAL.png — header
- Library Hero (06_library_hero_3840x1240.png) is already compliant (no text, no logo overlay) — left untouched.
The original *_logo.png files stay in place so the user can diff before re-uploading; only the *_FINAL.png variants should go up to Steamworks.
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Commit bf157d5 by astafford8488.