Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/img/cards/hungry-pathing.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/img/cards/hungry-pathing.webp.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"prompt": "Origin: a screenshot of the signature element on this mod's own Timbermods website (its own art, drawn for that site), cropped to 960x600. No generative model.",
"createdAt": "2026-09-23T20:54:25.707Z"
"createdAt": "2026-09-24T09:40:31.318Z"
}
Binary file modified assets/img/cards/persistent-work-areas.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/img/cards/persistent-work-areas.webp.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"prompt": "Origin: a screenshot of the signature element on this mod's own Timbermods website (its own art, drawn for that site), cropped to 960x600. No generative model.",
"createdAt": "2026-09-23T20:54:26.361Z"
"createdAt": "2026-09-24T09:40:31.467Z"
}
13 changes: 13 additions & 0 deletions scripts/card-art.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
# card id -> (page, CSS selector of the signature element, or None to use the clip rectangle)
# cards taken from their site's dark mode (Kyler, 2026-09-24: Timber Together's darker map reads better)
DARK = {"timber-together"}
# extra CSS for a capture: Hungry Pathing's board without its slate texture (it read as smoke)
CSS = {"hungry-pathing": ".board, .shift { background-image: none !important; }"}
# steps run on the page before the capture: Persistent Work Areas pins the Farmhouse too, so two outlines show
SETUP = {"persistent-work-areas": """
document.querySelector('svg.map g.bld[aria-label="Select Farmhouse"]').dispatchEvent(new MouseEvent('click', {bubbles: true}));
document.querySelector('.ui-toggle').click();
document.querySelector('[data-deselect]').click();
document.activeElement && document.activeElement.blur();
"""}
JOBS = {
"beaverbuddies-stability-fork": (SITE + "BeaverBuddies-Stability-Fork/", ".coop-map", None),
"timber-together": (SITE + "TimberTogether/", ".hero figure", None),
Expand All @@ -33,6 +42,10 @@
url, sel, clip = JOBS[card]
page = browser.new_page(viewport={"width": 1440, "height": 900}, color_scheme="dark" if card in DARK else "light", reduced_motion="reduce", device_scale_factor=1.5)
page.goto(url, wait_until="networkidle")
if card in SETUP:
page.evaluate(SETUP[card])
if card in CSS:
page.add_style_tag(content=CSS[card])
page.wait_for_timeout(600)
png = page.locator(sel).first.screenshot() if sel else page.screenshot(clip=clip)
page.close()
Expand Down
Loading