Skip to content
Documentation
Rule catalogue

og.image.ratio

Keep the shared image near the 1.91:1 the card is laid out for

infoper pagevendor-spec

Why it matters

Nothing rejects an image of the wrong shape — it gets cropped, and the consumer picks the crop. A square logo becomes a centre strip of itself, and whatever mattered in it was at the edges.

What the finding looks like

The message goflag prints, with example values substituted.

info og.image.ratio og:image is 600×600 — a ratio of 1:1, against the 1.91:1 the preview card is laid out for. Consumers will crop it.

How to fix it

This rule ships no snippet, because the remedy is a judgement rather than a line of code: the finding tells you what is out of range, and what to put there is yours to decide.

Says who?

This rule is vendor-spec, and it cites the documents below. Nothing here is goflag’s opinion of what a good page looks like — if you disagree with a finding, this is what you are disagreeing with.