Skip to content

fix(og): regenerate og.png at true 1200x630 (#233) - #236

Merged
yakew7 merged 1 commit into
mainfrom
fix/233-fix-og-size-quality
Sep 7, 2026
Merged

fix(og): regenerate og.png at true 1200x630 (#233)#236
yakew7 merged 1 commit into
mainfrom
fix/233-fix-og-size-quality

Conversation

@shauryagangrade

Copy link
Copy Markdown
Member

Summary

  • Replaces public/brand/og.png with a true 1200x630 PNG rendered from public/brand/og.svg through the same @vercel/og path the site's dynamic OG images already use.
  • The previous fallback was still the old 924x540 export; the SVG source was already authored at the correct OG canvas, so this just regenerates it properly and adds the bundled Space Grotesk / Inter font faces so the static fallback isn't blurry or missing typefaces.
  • Adds scripts/export-og-png.mjs as the canonical way to regenerate that file from the repo going forward.

Fixes #233

Validation

  • public/brand/og.png is now a 1200x630 PNG from the SVG source, rendered with the bundled brand fonts.
  • node scripts/export-og-png.mjs regenerates the file deterministically from public/brand/og.svg.

Notes

  • Per-city and per-competition opengraph-image.tsx already declare size = { width: 1200, height: 630 } and already use loadHeadingFonts() from src/lib/og-fonts.ts, so their sizing/quality already matches the corrected fallback.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff noreply@codebuff.com

The fallback `public/brand/og.png` had been sitting at 924x540 even though
`public/brand/og.svg` was already authored at the correct 1200x630 canvas.
Replace it with a proper 1200x630 PNG rendered through the same
`@vercel/og` path the site's dynamic OG images already use, including the
bundled Space Grotesk + Inter font faces so the static fallback isn't either
blurry or missing its typefaces.

Add `scripts/export-og-png.mjs` as the canonical source of truth for that
file, so the next time the SVG changes the PNG can be regenerated from the
repo instead of being re-exported by hand.

Fixes #233

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
study-map Ready Ready Preview Sep 7, 2026 6:06am UTC

@yakew7
yakew7 merged commit a207d00 into main Sep 7, 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.

Fix OG image size and quality (924x540 fallback, per-city export)

2 participants