Skip to content

[BUG]: og:image dimensions mismatch (declared 768x768, actual 1080x1080) and relative URL #720

Description

@AddToKart

Describe the bug:
index.html declares og:image:width="768" and og:image:height="768" for the Open Graph image /logos/jpg/BetterGov_Vertical-White.jpg, but the actual image file is 1080×1080 pixels. Social platforms (Facebook, X/Twitter, LinkedIn, Discord) use these declared dimensions to crop and scale the preview; a mismatch can result in a badly cropped or rejected preview card.

In addition, the OG spec (https://ogp.me) requires og:image to be an absolute URL, but the current value is relative (/logos/jpg/...). Most crawlers resolve relative paths, but not all do, and the absolute form is required for consistent previews everywhere.

To Reproduce:

  1. Download https://bettergov.ph/logos/jpg/BetterGov_Vertical-White.jpg
  2. Check its dimensions — it is 1080×1080
  3. Open https://bettergov.ph and view source — og:image:width and og:image:height are both 768
  4. (Optional) Paste the URL into the Facebook Sharing Debugger or LinkedIn Post Inspector and observe the preview behavior

Expected behavior:
Either the og:image:width / og:image:height tags should match the real image dimensions (1080×1080), or the width/height tags should be removed so crawlers read the file directly. The og:image content should also be an absolute URL (e.g. https://bettergov.ph/logos/jpg/BetterGov_Vertical-White.jpg).

Screenshots:
N/A

Device Info (optional):

  • OS: Any
  • Browser: All

Additional context:
Affected file: index.html. Note: src/components/SEO.tsx also defaults ogImage to the same relative path ('/logos/jpg/BetterGov_Vertical-White.jpg') and would need the same treatment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions