jpskill.com
💬 コミュニケーション コミュニティ

og-image-design

SNSで共有される画像やブログのサムネイルなど、各種プラプラットフォームの仕様に合わせた魅力的なOGP画像をデザインするSkill。

📜 元の英語説明(参考)

Open Graph and social sharing image design with platform specs, text placement, and branding. Covers OG meta tags, Twitter cards, LinkedIn previews, and dynamic generation. Use for: social sharing images, blog thumbnails, link previews, social cards. Triggers: og image, open graph, social sharing image, twitter card, social card, link preview image, og meta, sharing preview, social thumbnail, meta image, og:image, twitter:image, linkedin preview

🇯🇵 日本人クリエイター向け解説

一言でいうと

SNSで共有される画像やブログのサムネイルなど、各種プラプラットフォームの仕様に合わせた魅力的なOGP画像をデザインするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o og-image-design.zip https://jpskill.com/download/6197.zip && unzip -o og-image-design.zip && rm og-image-design.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6197.zip -OutFile "$d\og-image-design.zip"; Expand-Archive "$d\og-image-design.zip" -DestinationPath $d -Force; ri "$d\og-image-design.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して og-image-design.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → og-image-design フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[スキル名] og-image-design

OG画像のデザイン

inference.sh CLI を介して、ソーシャルシェアリング画像(Open Graph)を作成します。

クイックスタート

curl -fsSL https://cli.inference.sh | sh && infsh login

# HTML-to-image でOG画像を生成します
infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(135deg,#1a1a2e,#16213e);display:flex;align-items:center;padding:60px;font-family:system-ui;color:white\"><div><h1 style=\"font-size:56px;margin:0;line-height:1.2\">How We Reduced Build Times by 80%</h1><p style=\"font-size:24px;opacity:0.8;margin-top:20px\">engineering.yourcompany.com</p></div></div>"
}'

プラットフォームの仕様

プラットフォーム 寸法 アスペクト比 ファイルサイズ 形式
Facebook 1200 x 630 px 1.91:1 < 8 MB JPG, PNG
Twitter/X (summary_large_image) 1200 x 628 px 1.91:1 < 5 MB JPG, PNG, WEBP, GIF
Twitter/X (summary) 800 x 418 px 1.91:1 < 5 MB JPG, PNG
LinkedIn 1200 x 627 px 1.91:1 < 5 MB JPG, PNG
Discord 1200 x 630 px 1.91:1 < 8 MB JPG, PNG
Slack 1200 x 630 px 1.91:1 JPG, PNG
iMessage 1200 x 630 px 1.91:1 JPG, PNG

ユニバーサルな安全策:1200 x 630 px、PNGまたはJPG、5 MB未満です。

理想的なレイアウト

┌──────────────────────────────────────────────────┐
│                                                  │
│  ┌─────────────────────────────────┐  ┌───────┐  │
│  │                                 │  │       │  │
│  │  タイトルテキスト (最大60文字)  │  │ ロゴ/ │  │
│  │  ───────────────────            │  │ ビジュアル│  │
│  │  サブタイトル (最大100文字)     │  │       │  │
│  │                                 │  │       │  │
│  │  著者 / サイト名                │  └───────┘  │
│  └─────────────────────────────────┘             │
│                                                  │
└──────────────────────────────────────────────────┘
  1200 x 630 px

デザインルール

テキスト

ルール
タイトルフォントサイズ 48-64px
サブタイトルフォントサイズ 20-28px
タイトル最大文字数 60文字(一部プラットフォームで切り詰められます)
サブタイトル最大文字数 100文字
行の高さ タイトルは1.2-1.3
フォントウェイト タイトルはBold/Black、サブタイトルはRegular
テキストコントラスト WCAG AA最小(4.5:1比率)

セーフゾーン

┌──────────────────────────────────────────────────┐
│  ┌──────────────────────────────────────────────┐│
│  │ 全ての端から40pxのパディング               ││
│  │                                              ││
│  │  コンテンツはここに配置されます              ││
│  │                                              ││
│  │                                              ││
│  └──────────────────────────────────────────────┘│
└──────────────────────────────────────────────────┘
  • 全ての端から最低40pxのパディング
  • 一部のプラットフォームでは端が切り取られたり、角が丸くなったりします
  • 重要なテキストを外側の5%に配置しないでください

背景の種類 使用する場面
単色のブランドカラー 一貫したシリーズ、企業向け
グラデーション モダン、目を引く
オーバーレイ付きの写真 ブログ記事、編集記事
暗い背景 コントラストが良く、フィードで目立ちます

ソーシャルフィードでは暗い背景が明るい背景よりも優れています。ほとんどのフィードは白/明るい背景なので、暗いOG画像は際立ちます。

コンテンツタイプ別のテンプレート

ブログ記事

infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;padding:60px;font-family:system-ui,sans-serif;color:white\"><div style=\"flex:1\"><p style=\"font-size:18px;text-transform:uppercase;letter-spacing:2px;opacity:0.8;margin:0\">Engineering Blog</p><h1 style=\"font-size:52px;margin:16px 0 0;line-height:1.2;font-weight:800\">How We Reduced Build Times by 80%</h1><p style=\"font-size:22px;opacity:0.9;margin-top:16px\">A deep dive into our CI/CD optimization</p></div></div>"
}'

製品/ローンチ発表

infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:#0f0f0f;display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center\"><div><p style=\"font-size:20px;color:#22c55e;text-transform:uppercase;letter-spacing:3px\">Now Available</p><h1 style=\"font-size:64px;margin:12px 0;font-weight:900\">DataFlow 2.0</h1><p style=\"font-size:24px;opacity:0.7\">Automated reports. Zero configuration.</p></div></div>"
}'

チュートリアル/ハウツー

infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(to right,#1a1a2e,#16213e);display:flex;align-items:center;padding:60px;font-family:system-ui;color:white\"><div><div style=\"display:inline-block;background:#e74c3c;color:white;padding:8px 16px;border-radius:4px;font-size:16px;font-weight:bold;margin-bottom:16px\">TUTORIAL</div><h1 style=\"font-size:48px;margin:0;line-height:1.2\">Build a REST API in 10 Minutes with Node.js</h1><p style=\"font-size:20px;opacity:0.7;margin-top:16px\">Step-by-step guide with code examples</p></div></div>"
}'

AI生成ビジュアルOG

# テキストベースではなく、印象的なビジュアルが必要な場合
infsh app run falai/flux-dev-lora --input '{
  "prompt": "clean professional social sharing card, dark gradient background, abstract geometric shapes, modern tech aesthetic, minimal, no text, 1200x630 equivalent aspect ratio",
  "width": 1200,
  "height": 630
}'

OGメタタグリファレンス

<!-- 必須 (Facebook, LinkedIn, Discord, Slack) -->
<meta property="og.title" content="ここにタイトル (最大60文字)" />
<meta property="og.description" content="説明 (最大155文字)" />
<meta property="og.image" content="https://yoursite.com/og-image.png" />
<meta property="og.url" conten
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

OG Image Design

Create social sharing images (Open Graph) via inference.sh CLI.

Quick Start

curl -fsSL https://cli.inference.sh | sh && infsh login

# Generate an OG image with HTML-to-image
infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(135deg,#1a1a2e,#16213e);display:flex;align-items:center;padding:60px;font-family:system-ui;color:white\"><div><h1 style=\"font-size:56px;margin:0;line-height:1.2\">How We Reduced Build Times by 80%</h1><p style=\"font-size:24px;opacity:0.8;margin-top:20px\">engineering.yourcompany.com</p></div></div>"
}'

Platform Specifications

Platform Dimensions Aspect Ratio File Size Format
Facebook 1200 x 630 px 1.91:1 < 8 MB JPG, PNG
Twitter/X (summary_large_image) 1200 x 628 px 1.91:1 < 5 MB JPG, PNG, WEBP, GIF
Twitter/X (summary) 800 x 418 px 1.91:1 < 5 MB JPG, PNG
LinkedIn 1200 x 627 px 1.91:1 < 5 MB JPG, PNG
Discord 1200 x 630 px 1.91:1 < 8 MB JPG, PNG
Slack 1200 x 630 px 1.91:1 JPG, PNG
iMessage 1200 x 630 px 1.91:1 JPG, PNG

Universal safe bet: 1200 x 630 px, PNG or JPG, under 5 MB.

The Golden Layout

┌──────────────────────────────────────────────────┐
│                                                  │
│  ┌─────────────────────────────────┐  ┌───────┐  │
│  │                                 │  │       │  │
│  │  Title Text (max 60 chars)      │  │ Logo/ │  │
│  │  ───────────────────            │  │ Visual│  │
│  │  Subtitle (max 100 chars)       │  │       │  │
│  │                                 │  │       │  │
│  │  author / site name             │  └───────┘  │
│  └─────────────────────────────────┘             │
│                                                  │
└──────────────────────────────────────────────────┘
  1200 x 630 px

Design Rules

Text

Rule Value
Title font size 48-64px
Subtitle font size 20-28px
Max title length 60 characters (gets truncated on some platforms)
Max subtitle length 100 characters
Line height 1.2-1.3 for titles
Font weight Bold/Black for title, Regular for subtitle
Text contrast WCAG AA minimum (4.5:1 ratio)

Safe Zones

┌──────────────────────────────────────────────────┐
│  ┌──────────────────────────────────────────────┐│
│  │ 40px padding from all edges                  ││
│  │                                              ││
│  │  Content lives here                          ││
│  │                                              ││
│  │                                              ││
│  └──────────────────────────────────────────────┘│
└──────────────────────────────────────────────────┘
  • 40px minimum padding from all edges
  • Some platforms crop edges or add rounded corners
  • Never put critical text in the outer 5%

Colors

Background Type When to Use
Solid brand color Consistent series, corporate
Gradient Modern, eye-catching
Photo with overlay Blog posts, editorial
Dark background Better contrast, stands out in feeds

Dark backgrounds outperform light in social feeds — most feeds have white/light backgrounds, so dark OG images pop.

Templates by Content Type

Blog Post

infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;padding:60px;font-family:system-ui,sans-serif;color:white\"><div style=\"flex:1\"><p style=\"font-size:18px;text-transform:uppercase;letter-spacing:2px;opacity:0.8;margin:0\">Engineering Blog</p><h1 style=\"font-size:52px;margin:16px 0 0;line-height:1.2;font-weight:800\">How We Reduced Build Times by 80%</h1><p style=\"font-size:22px;opacity:0.9;margin-top:16px\">A deep dive into our CI/CD optimization</p></div></div>"
}'

Product/Launch Announcement

infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:#0f0f0f;display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center\"><div><p style=\"font-size:20px;color:#22c55e;text-transform:uppercase;letter-spacing:3px\">Now Available</p><h1 style=\"font-size:64px;margin:12px 0;font-weight:900\">DataFlow 2.0</h1><p style=\"font-size:24px;opacity:0.7\">Automated reports. Zero configuration.</p></div></div>"
}'

Tutorial/How-To

infsh app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(to right,#1a1a2e,#16213e);display:flex;align-items:center;padding:60px;font-family:system-ui;color:white\"><div><div style=\"display:inline-block;background:#e74c3c;color:white;padding:8px 16px;border-radius:4px;font-size:16px;font-weight:bold;margin-bottom:16px\">TUTORIAL</div><h1 style=\"font-size:48px;margin:0;line-height:1.2\">Build a REST API in 10 Minutes with Node.js</h1><p style=\"font-size:20px;opacity:0.7;margin-top:16px\">Step-by-step guide with code examples</p></div></div>"
}'

AI-Generated Visual OG

# When you want a striking visual instead of text-based
infsh app run falai/flux-dev-lora --input '{
  "prompt": "clean professional social sharing card, dark gradient background, abstract geometric shapes, modern tech aesthetic, minimal, no text, 1200x630 equivalent aspect ratio",
  "width": 1200,
  "height": 630
}'

OG Meta Tags Reference

<!-- Essential (Facebook, LinkedIn, Discord, Slack) -->
<meta property="og:title" content="Title here (60 chars max)" />
<meta property="og:description" content="Description (155 chars max)" />
<meta property="og:image" content="https://yoursite.com/og-image.png" />
<meta property="og:url" content="https://yoursite.com/page" />
<meta property="og:type" content="article" />

<!-- Twitter/X specific -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Title here" />
<meta name="twitter:description" content="Description" />
<meta name="twitter:image" content="https://yoursite.com/og-image.png" />

<!-- Image dimensions (optional but recommended) -->
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

Twitter Card Types

Card Type Image Size Use When
summary 800 x 418 (small thumbnail) Short updates, links
summary_large_image 1200 x 628 (full width) Blog posts, articles, announcements

Always use summary_large_image unless you have a specific reason not to — the large image gets significantly more clicks.

Consistency System

For a blog or site with many pages, create a template system:

Element Keep Consistent Vary
Background style Same gradient or brand colors
Font family Same font
Layout Same positioning
Logo/branding Same placement (corner)
Category badge Same style Color per category
Title text Same size/weight Content changes

Testing OG Images

Tool URL
Facebook Debugger developers.facebook.com/tools/debug/
Twitter Card Validator cards-dev.twitter.com/validator
LinkedIn Post Inspector linkedin.com/post-inspector/
OpenGraph.xyz opengraph.xyz
# Research OG debugging tools
infsh app run tavily/search-assistant --input '{
  "query": "open graph image debugger preview tool test og:image"
}'

Common Mistakes

Mistake Problem Fix
No OG image at all Platform shows random page element or nothing Always set og:image
Text too small Unreadable on mobile previews Title minimum 48px at 1200px width
Light background Gets lost in white/light feeds Use dark or saturated backgrounds
Too much text Cluttered, overwhelming Max: title + subtitle + brand
Image too large (>5MB) Some platforms won't load it Optimize to under 1MB ideally
No safe zone padding Text cropped on some platforms 40px padding from all edges
Different image per platform Inconsistent sharing experience Use 1200x630 for everything
HTTP image URL Many platforms require HTTPS Always serve OG images over HTTPS
Relative image path Won't resolve when shared Use full absolute URL

Related Skills

npx skills add inferencesh/skills@ai-image-generation
npx skills add inferencesh/skills@landing-page-design
npx skills add inferencesh/skills@prompt-engineering

Browse all apps: infsh app list