Skip to content

Keep the home share card readable when previews crop it - #63

Merged
alies-dev merged 1 commit into
masterfrom
alies-dev/og-smaller
Nov 21, 2026
Merged

alies-dev merged 1 commit into
masterfrom
alies-dev/og-smaller

Conversation

@alies-dev

Copy link
Copy Markdown
Contributor

Context

Some link previews crop og:image to a square or near-square around its centre. The home card had a left-aligned headline that ran almost the full 1200px width, so those previews showed "tch your PHP get / cter." and the start of the command.

Solution

og.png keeps the same size, colours, fonts and content, but everything is now centred in a 540px column: the sheep logo with "Shepherd" and the "by Psalm" pill, "Watch your PHP / get stricter." on two lines, and the vendor/bin/psalm --shepherd command. A 630×630 centre crop keeps the whole card with about 45px to spare on each side. A faint dot grid near the edges keeps the full-width card from looking empty.

The image URL already carries ?v=<mtime>, so previews pick up the new file without other changes.

Previews that centre-crop og:image to a square cut the left-aligned
headline to "tch your PHP get / cter.". The content now sits in a
centred 540px column that survives a 630x630 crop.
@alies-dev alies-dev self-assigned this Nov 21, 2026
@alies-dev
alies-dev merged commit 03a687e into master Nov 21, 2026
3 checks passed
@alies-dev
alies-dev deleted the alies-dev/og-smaller branch November 21, 2026 17:06
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