首页 视觉与设计内容详情

OG Image Studio: Build a 1200×630 Share Card Without a Design App - One link, one card, no design app

2026-11-15 5
OG Image Studio: Build a 1200×630 Share Card Without a Design App

站点名称:OG Image Studio: Build a 1200×630 Share Card Without a Design App

所属分类:视觉与设计

官方网址:https://www.9314.cn/tools/og-image-studio/en/

SEO查询: 爱站网 站长工具

进入网站

站点介绍

OG Image Studio: Stop Letting Your Links Show a Gray Square

Three group chats, two blank gray squares, one wasted afternoon. I pasted a launch link into a Slack channel on Jan 5, 2026 at 9:00 AM and got the platform's default tile back. The headline sat right there in the HTML; the og:image tag did not.

TL;DR

  • 1200×630 is the one size WeChat, X, Slack, and LinkedIn all grab without cropping, and the PNG you download is already at that resolution.
  • Five layouts differ in where the title sits and how the geometry is built, not in the palette.
  • Mixed English and CJK copy wraps by measured character width; long text truncates with a clear 'text too long' note instead of spilling off the canvas.
  • The PNG and four meta lines are ready to paste, and every setting stays on this device.

1. Where the gray square comes from

When you share a URL, a crawler reads the Open Graph tags in the page's <head>. og:image is the single line that points at the picture the card should show; leave it out, and the platform invents a flat gray tile with your domain in small type.

I learned this the hard way with an 800×418 export that X cropped straight through the second line of my title. 1200×630 is the size every major platform accepts without a fight, so this page draws at exactly that size and never asks you to crop.

Nothing here needs a design app or a $29 template pack. Canvas is the browser's own drawing surface, and it renders the whole card locally in a few milliseconds.

2. What actually changes between the five layouts

The five presets are real layouts, not five colorways of one picture. Split puts the headline in a left column with a solid block on the right, while Center stacks a top badge over a large centered title.

Slant adds an angled color bar along the bottom, Grid quote lays a fine grid under a giant quote mark and a vertical rule, and Duotone cuts the card into two colored halves with text on opposite sides.

Each one recomputes where the title, badge, subtitle, and site name land. I would not use the centered layout for a 40-character headline; the left-aligned ones give the words far more room to breathe.

3. How wrapping and truncation work

Wrapping is measured, not guessed. measureText asks the browser how wide each character actually is, so an English word stays whole, a Chinese character breaks on its own boundary, and an emoji never splits into two broken halves.

Every line is also clipped to the text column with a maximum width, so nothing paints outside the 1200×630 frame even when a font behaves oddly. Truncation kicks in when the copy genuinely cannot fit: the last line gets an ellipsis and the strip above the preview says 'text too long' instead of quietly cutting the words.

Mixed text is where most generators fall apart. CJK punctuation, full-width commas, and Latin words with hyphens all pass through the same tokenizer here, and the edge cases — an empty title, a single 120-character line, a string of emoji — all render without throwing.

4. The step after you download

The PNG you get is the real 1200×630 file, not a screenshot scaled up. Upload it to your own site, then point og:image at that URL; the four meta lines beside the preview cover og:title, og:description, the image, and the Twitter card type.

Platforms cache these cards aggressively, which is the part people miss. Change the filename before re-uploading, or use the platform's debugger to force a refresh — editing the same PNG over and over rarely helps.

I keep one preset per project so the badge, colors, and site name never drift between posts. A card that costs $0 and thirty seconds to rebuild is a card I will actually keep current.

FAQ

Why does my link still show the old image?

Platforms cache og:image. WeChat, X, and Slack fetch a card once and then keep it for a long while. Upload under a new filename, or use the platform's own debugger to force a refresh; that works better than editing this PNG over and over. This page only generates the image and the four meta lines — uploading and refreshing happen on your own site.

Will a long mixed-language headline spill outside the canvas?

No. Lines wrap by measured character width, and mixed English, Chinese, emoji, and CJK punctuation all stay inside the frame. Text that is genuinely too long gets truncated with a 'text too long' note above the preview; lower the font size or shorten the copy.

Can I change the words without touching the layout?

Yes. The five layouts are independent, and copy, size, weight, colors, and the decoration toggle are separate controls. A sample preset fills in a whole set at once, but changing one field afterwards leaves the rest alone.

Does my headline get uploaded anywhere?

No. Everything is computed in this browser and saved in localStorage on this device; there is no copy on a server. To wipe it completely, use 'Clear my data' in the footer — it asks for confirmation first.

中文版:https://www.9314.cn/tools/og-image-studio/

 暂无评论,快来抢沙发吧~

发布评论