fix(og): regenerate og.png at true 1200x630 (#233) - #236
Merged
Conversation
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>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
public/brand/og.pngwith a true 1200x630 PNG rendered frompublic/brand/og.svgthrough the same@vercel/ogpath the site's dynamic OG images already use.scripts/export-og-png.mjsas the canonical way to regenerate that file from the repo going forward.Fixes #233
Validation
public/brand/og.pngis now a 1200x630 PNG from the SVG source, rendered with the bundled brand fonts.node scripts/export-og-png.mjsregenerates the file deterministically frompublic/brand/og.svg.Notes
opengraph-image.tsxalready declaresize = { width: 1200, height: 630 }and already useloadHeadingFonts()fromsrc/lib/og-fonts.ts, so their sizing/quality already matches the corrected fallback.🤖 Generated with Codebuff
Co-Authored-By: Codebuff noreply@codebuff.com