推荐导出尺寸
1200×630 px
使用方法
- 打开 OG 图片生成器,Open Graph 格式已锁定为 1200×630。
- 选择适合你要分享页面的模板(以文字为主或分栏布局)。
- 编辑标题与副标题,再调整背景、对比度以及可选配图。
- 导出 PNG 或 JPEG,上传到你的网站,并将 og:image 设为该 URL。
最佳实践
- 目标尺寸约 1200×630 px,这是富链接预览的常见默认值。
- 标题尽量简短,确保在信息流与聊天缩略图尺寸下仍可读。
- 使用强对比;平台往往会大幅重新压缩图片。
- 把关键词放在标题前半段,以防边缘被裁切。
- og:image 优先使用 PNG 或 JPEG(Meta 对 og:image:type 列出 JPEG、GIF、PNG)。在依赖 WebP 前先测试,然后将 og:image 与 twitter:image 设为最终公开 URL。
- 更换图片后,在 Slack 或 LinkedIn 中重新检查预览;部分缓存会保留旧卡片直到刷新。
在你的网站中接入 Open Graph 图片
生成 OG 图片后,把文件上传到网站的公开路径,并将 og:image(通常还有 twitter:image)指向该 URL。同时填写 width、height 和 alt,以便爬虫稳定渲染预览卡片。为了获得最广泛的链接预览兼容性,优先使用 PNG 或 JPEG;WebP 请先测试再用作 og:image。
<!-- Basic Open Graph tags -->
<meta property="og:title" content="Your page title" />
<meta property="og:description" content="Your page description" />
<meta property="og:image" content="https://yourdomain.com/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Open Graph image" />
<meta property="og:image:type" content="image/png" />
<meta property="og:url" content="https://yourdomain.com/page" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://yourdomain.com/og-image.png" />常见问题
相关指南
了解此格式的尺寸、最佳实践,以及如何做出更好的图片。
- Tool workflow
Best Open Graph Image Generators Compared (2026)
Compare Open Graph image generators for social previews. See how FeatureImg, OpenGraph.xyz, and Bannerbear differ on templates, editing, export, and workflow.
- How-to guides
How to Create an Open Graph Image
Learn how to create an Open Graph image for blog posts, landing pages, product launches, and social shares. Use templates to design a clean link preview image online.
- Design ideas
Open Graph Image Examples
Explore Open Graph image examples for blog posts, landing pages, product launches, and social shares. Learn what makes a better link preview image.
