Skip to content

Open Graph Preview Images - #784

Open
AugustMiller wants to merge 1 commit into
mainfrom
kenneth/og-image
Open

Open Graph Preview Images#784
AugustMiller wants to merge 1 commit into
mainfrom
kenneth/og-image

Conversation

@AugustMiller

Copy link
Copy Markdown
Contributor

Kenneth has set up Cloud’s “open-beta” screenshot capturing tool to dynamically generate preview images for all docs + KB pages; this just adds the appropriate head tags that point to stable craftcms.com redirects… so, we don't need to know the full URL of the asset (which may change over time), just the path.

For example, a request to…

https://craftcms.com/api/og-image/docs/5.x/editions

…will respond with a redirect, like this:

HTTP/2 302
Location: https://cdn.craft.cloud/[[ Project UUID ]]/assets/card-image/[[ Filename with entropy ]].png

Images are generated in the background when an entry is saved.

@AugustMiller
AugustMiller requested a review from a team as a code owner August 25, 2026 17:28
@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for craft-docs ready!

Name Link
🔨 Latest commit 0fdd49a
🔍 Latest deploy log https://app.netlify.com/projects/craft-docs/deploys/6a8dd0a12484760008885c04
😎 Deploy Preview https://deploy-preview-784--craft-docs.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.

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.

2 participants