Skip to content

fix: use compatible social preview images - #2441

Merged
markdumay merged 1 commit into
mainfrom
fix/social-preview-image-formats
Dec 1, 2026
Merged

markdumay merged 1 commit into
mainfrom
fix/social-preview-image-formats

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Summary

  • Generate the existing 1280×640 share PNG from AVIF when the running Hugo version can process it.
  • Use an available configured JPEG, GIF, or PNG for older-Hugo AVIF, HEIC, and resolved SVG thumbnails without a raster sibling.
  • Omit the affected Open Graph, X, and page structured-data image fields with a warning when a compatible fallback is unavailable.

Verification

  • All 56 focused checks passed on Hugo 0.170.1 and extended 0.158.0. Strict cases and existing damaged-image behavior passed on both versions.
  • The full suite passed through the normal commit hook. The AVIF and bundle SVG demo pages passed the production warning gate.
  • All 24 image URLs returned 1280×640 PNGs across the four production mod-docs builds at root and at a subpath.
  • Both independent reviews rechecked the policy and deliberate regressions.

Refs #2335

@netlify

netlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit 6df9efb
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6b0e64291cf8b7251ef5d323
😎 Deploy Preview https://deploy-preview-2441--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@markdumay
markdumay merged commit d08ad61 into main Dec 1, 2026
17 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.54.19 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant