og-card
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/og-card
/og-card
vs /og-hero-image
与/og-hero-image的对比
- /og-hero-image: AI creative via Gemini. Use for one-off hero art.
- /og-card: consistent templates via Satori. Use for branded systems.
- /og-hero-image:通过Gemini生成AI创意内容。用于一次性的主视觉图创作。
- /og-card:通过Satori使用一致性模板。用于品牌化系统。
Templates
模板
- blog: title + author + date + brand colors
- product: logo + tagline + screenshot
- changelog: version + highlights
- comparison: product vs competitor
- blog:标题 + 作者 + 日期 + 品牌配色
- product:Logo + 标语 + 截图
- changelog:版本号 + 亮点
- comparison:产品 vs 竞品
Process
流程
- Read for colors/fonts when present.
brand-profile.yaml - Select a template and pass required fields.
- Render via .
skills/og-card/scripts/generate-card.ts - Emit a 1200x630 PNG.
- 若存在,读取其中的配色/字体信息。
brand-profile.yaml - 选择一个模板并传入所需字段。
- 通过进行渲染。
skills/og-card/scripts/generate-card.ts - 输出一张1200x630的PNG图片。
Prerequisites
前置条件
pnpm add @vercel/og satori sharppnpm add @vercel/og satori sharpUsage
使用方法
/og-card blog "Title" by Author/og-card product for heartbeat/og-card blog "Title" by Author/og-card product for heartbeatOutput
输出
og-[template]-[slug].png生成1200x630尺寸的文件
og-[template]-[slug].png