Social Sharing Images (og:image dan twitter:image): Sizes, Limits, dan Fallbacks

image spec sheet untuk og:image dan twitter:image — safe 1200×630 (1,91:1) default, per-platform dimensions dan file-size caps, absolute-URL aturan, Google's own 2026 thumbnail requirements, dan why images fail vs. fall back.

Pertama kali diterbitkan: 2 Jul 2026 · Terakhir diperbarui: 3 Agu 2026 · Advanced
Bahasa

og:image dan twitter:image poin di image di Anda tautan-preview card — ini adalah deep dive pada image requirements, not tag syntax (see Open Graph dan Twitter Cards siblings untuk itu). safe cross-platform default adalah sebuah absolute HTTPS URL untuk sebuah ~1200×630px (1,91:1) image, tetapi itu's sebuah community-converged compromise, not sebuah single official spec. hanya Meta's angka adalah primary-sourced: 200×200 minimum, 600×315 floor, ≥1200×630 recommended, 1,91:1, 8 MB cap. X's ~1200×628/675 dan ~5 MB, Slack's ~32 KB early-HTML read, dan WhatsApp's silent drop dari besar images adalah community consensus, not freshly-verifiable pertama-party specs — say so. absolute-URL aturan adalah sebuah nyata silent failure: social crawler don't resolve relative paths. sebuah missing tag falls back untuk sebuah scraped body image; sebuah present-tetapi-broken image (404, oversized, auth-blocked) adalah less forgiving dan sering menampilkan no image di semua. sebagai dari March 2026 Google reads og:image untuk -nya own Search dan menemukan thumbnails (-nya own docs don't extend ini untuk AI surfaces), tetapi -nya spec adalah 16:9 / ≥1200px wide / ≥300K pixels / no logos / no text — sebuah berbeda shape daripada 1,91:1 social crop. Caching berarti fixing sebuah image doesn't fix sudah-shared tautan until Anda force sebuah re-scrape. ini adalah sebuah deep dive di bawah Meta Tags untuk SEO hub.

TL;DR — ini adalah image spec sheet, not tag syntax — og:image / twitter:image mechanics live di Open Graph dan Twitter Cards siblings. 1200×630 (1,91:1) adalah safe default, not sebuah official universal standard. hanya Meta’s angka adalah primary-sourced: 200×200 minimum, 600×315 floor, ≥1200×630 recommended, 1,91:1, 8 MB cap. X’s ~1200×628/675 dan ~5 MB, Slack’s ~32 KB early-HTML read, dan WhatsApp’s ~300 KB silent drop adalah community consensus, not freshly-verifiable pertama-party specs — I flag which adalah which. absolute-URL aturan adalah sebuah nyata silent failure: social crawler don’t resolve relative paths. Missing ≠ broken: sebuah absent tag falls back untuk sebuah scraped body image; sebuah present tetapi failing image (404, oversized, auth/robots-blocked) sering menampilkan nothing. Google now reads og:image untuk -nya own Search dan menemukan thumbnails (March 2026), tetapi -nya spec adalah 16:9 / ≥1200px wide / ≥300K pixels / no logo / no text — sebuah berbeda shape daripada 1,91:1 social crop. Caching berarti sebuah fix doesn’t reach sudah-shared tautan until Anda force sebuah re-scrape.

Evidence for this claim The Open Graph protocol uses og:image to identify an image and defines optional image URL, MIME type, width, height, and alt properties. Scope: Open Graph protocol metadata. Confidence: high · Verified: Open Graph protocol Evidence for this claim X Cards support summary and summary_large_image card types and image metadata, subject to X's crawler and card requirements. Scope: Current X Cards markup documentation. Confidence: high · Verified: X Developer Platform: Cards markup

What ini artikel covers (dan what siblings cover)

tag mechanics — four diperlukan Open Graph properties, name= vs. property=, four Twitter Card jenis, dan twitter:imageog:image fallback aturan — adalah sudah handled di Open Graph Tags dan Twitter Card Tags. ini piece adalah companion spec sheet: dimensions, aspect ratio, file size, format, absolute-URL requirement, dan what actually breaks when apa pun dari itu adalah wrong. jika Anda’re here untuk write <meta> line, start dengan itu two; jika Anda’re here because Anda image adalah wrong size atau won’t tampilkan, Anda’re di right place.

One quick reuse dari fallback aturan, because ini decides how banyak images Anda perlu: twitter:image falls back untuk og:image when ini adalah absent, so sebagian besar situs set one image dan gunakan ini untuk both — Anda hanya diverge jika Anda specifically ingin sebuah berbeda crop untuk X.

safe default: 1200×630 (1,91:1) — dan why ini adalah sebuah compromise

Nearly setiap guide leads dengan 1200×630 dan stops there. ini adalah sebuah baik default, tetapi ini adalah worth menjadi honest tentang where ini comes dari: ini adalah not sebuah single cross-platform standard anyone publishes identically. ini adalah community-converged size itu clears Facebook’s recommendation dan renders acceptably pada everything else. beberapa guides say 1200×627, beberapa say 1200×628 untuk X — itu adalah rounding dan legacy variants dari yang sama ~1,91:1 idea, not competing specs. Pick 1200×630, dan satu-satunya place Anda mungkin ingin sebuah kedua image adalah X, jika Anda care tentang sebuah tighter crop there.

Per-platform dimensions dan file size

single sebagian besar berguna thing ini halaman dapat melakukan adalah separate what’s primary-sourced (Meta) dari what’s community consensus (everything else). I’ve telah explicit tentang which adalah which — don’t treat non-Meta angka sebagai gospel.

Facebook / Meta (primary-sourced)

dari Meta’s own sharing-images documentation:

  • Minimum: “The minimum allowed image dimension is 200 x 200 pixels.” (terjemahan) “ minimum allowed image dimension adalah 200 x 200 pixels.”
  • Floor untuk hindari kecil render: “At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images.” (terjemahan) “di minimum, Anda harus gunakan images itu adalah 600 x 315 pixels untuk display tautan halaman posts dengan larger images.”
  • Recommended: “Use images that are at least 1200 x 630 pixels for the best display on high resolution devices.” (terjemahan) “gunakan images itu adalah setidaknya 1200 x 630 pixels untuk best display pada tinggi resolution devices.”
  • Aspect ratio: pertahankan ini “as close to 1.91:1 aspect ratio as possible” (terjemahan) “sebagai close untuk 1,91:1 aspect ratio sebagai mungkin” untuk hindari cropping di Feed.
  • File-size cap: “The size of the image file must not exceed 8 MB.” (terjemahan) “ size dari image file harus not exceed 8 MB.”

Meta adalah juga source dari “first-share” (terjemahan) “pertama-share” caching quirk: crawler memiliki untuk see image setidaknya once sebelum ini renders, so “the first person who shares a piece of content won’t see a rendered image.” (terjemahan) “ pertama person who shares sebuah piece dari konten won’t see sebuah rendered image.” (LinkedIn behaves similarly — ini adalah re-scrape story, covered di Open Graph sibling.)

X / Twitter (community consensus — treat dengan caution)

X’s angka adalah ones untuk menjadi careful dengan. official Card Validator adalah deprecated di 2022 dengan no replacement, dan developer.x.com’s Cards documentation adalah effectively hilang: ini dikembalikan sebuah HTTP 402 Payment diperlukan respons di early July 2026, dan sebagai dari ini update yang sama URL instead redirects (HTTP 307) untuk docs.x.com’s homepage, where equivalent Cards-markup path 404s — sebuah dead tautan either cara, so tidak ada live, freshly-checkable pertama-party X spec right now. figures itu circulate di seluruh guides — roughly 1200×628 atau 1200×675 untuk summary_large_image, sebuah 300×157 minimum, sebuah 4096×4096 maximum, dan sebuah ~5 MB file cap, dengan kecil summary card needing sebuah smaller ~144×144-minimum square — adalah ketiga-party consensus, not sebuah confirmed saat ini official spec. mereka’re close enough untuk 1,91:1 default untuk menjadi berguna, tetapi I wouldn’t present apa pun spesifik X byte atau pixel angka sebagai authoritative. ( X documentation dan validator situation adalah covered di full di Twitter Cards sibling.)

LinkedIn, Slack, WhatsApp, Discord, iMessage

  • LinkedIn adalah one non-Meta platform dengan -nya own documented angka: -nya help halaman untuk membuat sebuah situs shareable states sebuah minimum dari 1200×627 pixels, sebuah recommended ratio dari 1,91:1, dan sebuah 5 MB max file size — dan separately notes itu “images less than 401 pixels wide display as a thumbnail image.” (terjemahan) “images less daripada 401 pixels wide display sebagai sebuah thumbnail image.” bangun untuk 1200×630 default dan Anda jelas ini dengan margin; don’t confuse ini dengan Facebook’s angka, mereka’re LinkedIn’s own. -nya Post Inspector adalah re-scrape alat.
  • Slack adalah sebuah placement gotcha more daripada sebuah size one: ini adalah widely reported untuk read hanya pertama ~32 KB dari sebuah halaman’s raw HTML when unfurling. jika Anda head tags — dan thus Anda og:image reference — sit below itu, Slack dapat tidak pernah see them. Slack’s own unfurling docs confirm ini reads Open Graph / X Card metadata tetapi don’t publish sebuah byte limit, so treat 32 KB figure sebagai reported, not officially confirmed.
  • WhatsApp adalah reported untuk silently drop preview image untuk besar files — commonly cited sekitar ~300 KB, bahkan though sebuah higher (~600 KB) “official-sounding” (terjemahan) “official-sounding” WhatsApp angka juga floats sekitar. Either cara, sebuah heavy image adalah failure mode.
  • Discord dan iMessage inherit Open Graph dengan no separately documented image specs — bangun untuk 1200×630 default dan mereka ikuti.

honest takeaway: alih-alih chasing tightest documented angka, target di bawah ~1 MB — ideally 100–300 KB — dan Anda jelas setiap platform’s ceiling dengan margin.

absolute-URL aturan — sebuah nyata, silent failure mode

ini one adalah stated sebagai fact everywhere tetapi rarely dijelaskan. og:image dan twitter:image harus menjadi sebuah absolute https://... URL. sebuah relative path like /images/share.jpg isn’t rejected dengan sebuah terlihat error — ini adalah hanya silently ignored. alasan: sebuah browser resolves sebuah relative path terhadap halaman’s own URL because ini sudah knows what halaman ini adalah pada, tetapi sebuah social crawler fetching Anda tag memiliki no such base context dan won’t reliably reconstruct Anda domain. So ini skips tag dan falls back untuk whatever else ini dapat scrape. jika Anda image “isn’t showing” (terjemahan) “isn’t showing” dan path di Anda source starts dengan sebuah / alih-alih https://, itu’s Anda bug.

One image, two masters: Google’s 2026 thumbnail spec

Here’s freshest dan least-covered angle. sebagai dari March 2, 2026, Google documents og:image sebagai one dari two accepted metadata sources (alongside schema.org primaryImageOfPage) untuk selecting -nya own thumbnails di Search dan menemukan — Google’s own docs describe ini two surfaces specifically dan don’t extend claim untuk AI Overviews atau lainnya AI surfaces, so I won’t either. itu berarti yang sama image file now sering memiliki untuk satisfy both social platforms dan Google’s text-hasil/menemukan thumbnails — dan mereka specs aren’t yang sama shape.

Google’s image guidance (menemukan dan Image SEO docs):

  • Dimensions: “at least 1200 px wide.” (terjemahan) “setidaknya 1200 px wide.”
  • Aspect ratio: sebuah 16:9 ratio — not social world’s 1,91:1.
  • Resolution: “more than 300,000 total pixels” (terjemahan) “more daripada 300 000 total pixels” (sebuah 1280×720 image adalah 921 600 pixels dan clears ini comfortably).
  • konten: hindari “a generic image (for example, your site logo) or an image with text,” (terjemahan) “sebuah generic image (misalnya, Anda situs logo) atau sebuah image dengan text,” dan hindari “an extreme aspect ratio.” (terjemahan) “sebuah extreme aspect ratio.”
  • Eligibility prerequisite: untuk get besar thumbnail treatment di menemukan di semua Anda perlu max-image-preview:large (sebuah robots meta directive) atau AMP — sebuah separate lever dari image file, covered di robots meta tag topic.

nuance untuk flag alih-alih hand-wave: sebuah 1200×630 (1,91:1) social image adalah 630px tall, so ini adalah 756 000 total pixels — ini clears Google’s ≥1200px-wide dan ≥300K-pixel bars fine — tetapi 1,91:1 adalah not 16:9. dalam praktik one well-dibangun image satisfies both, tetapi jika Anda ingin mengoptimalkan setiap independently Anda dapat supply sebuah separate primaryImageOfPage di schema untuk Google while keeping 1,91:1 crop untuk social. Either cara, “no logo, no text-heavy image” (terjemahan) “no logo, no text-heavy image” advice adalah baik untuk social CTR too — sebuah logo doesn’t differentiate one shared tautan dari lainnya.

Missing vs. broken — two berbeda failure modes

People conflate ini, dan mereka behave differently:

  • ** og:image tag adalah absent.** Platforms fall back untuk sebuah scraped di-body image atau sebuah generic default. Anda get sebuah uncontrolled preview, rarely sebuah truly blank one. (ini adalah tag-missing case handled di Open Graph sibling.)
  • ** og:image tag adalah present tetapi image fails** — sebuah 404, sebuah oversized file silently dropped, sebuah wrong MIME jenis, atau sebuah URL blocked oleh auth atau robots.txt. perilaku here adalah less forgiving: several platforms tampilkan no image di semua rather daripada falling back further, because mereka sudah “know” (terjemahan) “know” Anda specified one. ini adalah case unique untuk ini artikel, so ini adalah worth stating plainly: sebuah broken image reference dapat render sebuah worse card daripada no reference di semua.

dan render-vs-crawl gotcha underneath both: sebagian besar social bot don’t run JavaScript, so jika Anda tag adalah injected client-side ini won’t menjadi seen. sebagai I put ini di my Ahrefs JavaScript SEO guide, “Social media bots don’t run JavaScript, so things like OG tags won’t be seen unless you render the content before serving it to them.” (terjemahan) “Social media bot don’t run JavaScript, so things like OG tags won’t menjadi seen unless Anda render konten sebelum serving ini untuk them.” server-render tag, atau image tidak pernah memiliki sebuah chance.

Format mendukung

  • JPEG/JPG dan PNG adalah universally didukung — safe everywhere.
  • WebP adalah didukung oleh sebagian besar modern consumers (Meta lists ini explicitly), tetapi I’d pertahankan sebuah JPEG/PNG fallback untuk anything Anda dapat’t test.
  • Animated GIF/WebP adalah unreliable untuk sebuah masih preview card — sebagian besar platforms grab sebuah single frame atau ignore animation. Don’t rely pada motion di sebuah share image.

Caching — last mile

Fixing sebuah oversized atau broken image doesn’t propagate untuk tautan people sudah shared until Anda force sebuah re-scrape: Facebook Sharing Debugger dan LinkedIn Post Inspector re-fetch Anda halaman dan refresh mereka cached preview. ini adalah centerpiece dari Open Graph sibling, so I’ll leave ini di one line here: edit image, lalu re-scrape, atau old one lingers.

Where ini fits

ini adalah sebuah deep dive di bawah Meta Tags untuk SEO hub, sitting right next untuk two tag-syntax siblings — Open Graph dan Twitter Cards — itu ini artikel extends. ini juga brushes separate image SEO cluster (which covers file formats, alt text, dan image pengindeksan di umum): difference adalah itu image SEO adalah tentang pictures inside Anda konten, while ini adalah tentang one metadata image itu mewakili whole halaman di sebuah share card dan, now, sebuah Google thumbnail.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.