Skip to content

Page: sharp faces on person cards - #11

Merged
Fengzdadi merged 1 commit into
mainfrom
page/sharp-faces
Nov 3, 2026
Merged

Fengzdadi merged 1 commit into
mainfrom
page/sharp-faces

Conversation

@Fengzdadi

Copy link
Copy Markdown
Owner

A person's share card showed their avatar shrunk to 24×24 and blown up 4×, so detailed avatars came out as mush.

  • The face is now drawn on the card's own pixel grid (one face pixel per art pixel, 96×96 on a landscape card), shrunk from a 256px avatar. Films and the 3× option work out the grid from the canvas scale.
  • An avatar address that won't parse falls back to the initial instead of failing the card.
  • gitropolis.dev: person cards move to a new key (by2/), so cached ones are redrawn. Repo cards are untouched.

Checked locally with a headless ?card=og&by=…&face=… card. npm test passes.

🤖 Generated with Claude Code

A person's face on their share card was their avatar shrunk to 24×24
and blown up four times, so a detailed avatar (a character, text) came
out as mush. It's now drawn on the card's own pixel grid: one pixel of
it per art pixel, as fine as the city around it (96×96 on a landscape
card), shrunk from a 256px avatar. Films and the 3× sharp option work
out the same grid from the canvas's scale.

An avatar address that won't parse leaves the initial instead of
failing the card.

gitropolis.dev: person cards are stored under a new path (by2/), so
ones already drawn the old way are drawn again. Repo cards are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Fengzdadi
Fengzdadi merged commit dbb3dde into main Nov 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant