Files
guizang-social-card-skill/references/platform-specs.md
T
郭浩 f492caeb8b v0.15: Live Photo 生产规则 — 平台限制、拼图版式、长视频处理、发布提醒、可见文案规则
新增 Live Photo 正式能力:单视频、二宫格、三宫格、四宫格、三连拼图、
长视频低成本诊断。增加 references/live-photo-production.md 生产规范、
scripts/ 工具链(contact sheet / .pvt 打包 / Apple metadata)、
validator R8 visual bounds + R9 title gap、文档约束测试。

由 Codex 完成主体实现。
2026-07-01 16:11:34 +08:00

4.5 KiB

Platform Specs

Use high-resolution exports. The user can downsample later.

Xiaohongshu / Rednote

Default size:

  • 1080 x 1440
  • Ratio: 3:4
  • Export: PNG for text-heavy images, JPEG only when photo-only and file size matters.

Safe area:

  • Side margin: 72-96px.
  • Top margin: 72-112px.
  • Bottom margin: 80-120px.
  • Keep all text and key objects inside the safe area.

Recommended set:

  • 1 cover.
  • 4-8 content pages.
  • 1 summary or checklist page if the article benefits from it.
  • Optional Live Photo card for motion-heavy evidence. Use references/live-photo-production.md when making .pvt packages for AirDrop and iPhone testing.

Live Photo:

  • Duration: up to 5s.
  • Keep the same 1080 x 1440 / 3:4 canvas and safe area as static Rednote cards.
  • Use Live Photo when motion is the evidence: fast generation, before/after UI, product interaction, app/game demo, scroll reveal, or process-to-result comparison.
  • Package as .pvt for iPhone/AirDrop testing. Loose JPG/MOV pairs often import as separate assets.
  • Publish path: AirDrop the .pvt package as one item to iPhone, then publish from the Xiaohongshu app. Desktop/web upload cannot be treated as the primary Live Photo publishing path.

Naming:

output/xhs-01-cover.png
output/xhs-02-<topic>.png
output/xhs-03-<topic>.png
...

Cover structure:

  • Big title with a sharp hook.
  • One strong visual: supplied image, screenshot, generated photo, or product object.
  • Bottom line with 3-5 key points or a compact issue strip.
  • Avoid long subtitles. Put nuance in later pages.

Content page structure:

  • One idea per page.
  • 12-30 Chinese characters for the title when possible.
  • 2-4 short bullet fragments or one concise paragraph.
  • If a page has a screenshot, reduce the text and give the screenshot enough area.
  • If lower space is empty across pages, combine pages or add a functional element such as checklist, comparison row, quote, or image evidence.

WeChat Official Account Cover Pair

Generate a pair: one 21:9 main cover and one 1:1 square cover. Build both in the same HTML file, and include a combined preview section that places them together for visual checking.

21:9 Main Cover

Default size:

  • 2100 x 900
  • Ratio: 21:9

Use:

  • Main article cover.
  • Full or near-full headline, subtitle, and visual evidence.
  • Keep title readable near center-left or within a clear safe band.
  • Avoid an empty middle. Increase title scale, image scale, or spacing if the center feels hollow.

1:1 Cover

Default size:

  • 1080 x 1080
  • Ratio: 1:1

Default style:

  • Short title only, simplified from the long title.
  • Big type, center aligned.
  • No image unless the user explicitly asks for one.
  • No subtitle by default.
  • Strong contrast and enough breathing room.

Short-title rule:

  • Extract the core object and action from the long title.
  • Keep it to roughly 4-10 Chinese characters, or 2 short lines when needed.
  • Do not squeeze the full 21:9 title into the square.

Example:

Long: 开源了一个 Skill,让 AI 接管你屏幕边那张便签纸
Square: AI 接管便签纸

Naming:

output/wechat-21x9-cover.png
output/wechat-1x1-cover.png
output/wechat-cover-pair-preview.png

WeChat Official Account Article Live Photo

Observed support is upload-path dependent:

  • iPhone upload can preserve Live Photo in Official Account article editing.
  • Web upload does not expose the same Live Photo path.
  • Keep Live Photo duration at or below 3s.
  • Publish path: AirDrop the .pvt package as one item to iPhone, then upload from the iPhone Official Account article editing path.

Use the same 3:4 card standard as Rednote when the user wants a WeChat article body card. If the publisher must use the desktop/web path, export a GIF or short video fallback instead of promising Live Photo support.

Screenshot And Photo Placement

For supplied screenshots/photos:

  • Put originals in assets/.
  • Use CSS object-fit:cover only when cropping is safe.
  • Use CSS object-fit:contain for UI screenshots, dense text, code, tables, or app windows.
  • Set object-position deliberately: top for long UI when top matters, center for objects, 35%-45% vertical for portraits.
  • Do not pin images to the canvas edge unless the design intentionally uses bleed.

Final Response Media

In Codex desktop, local media can be shown with absolute paths:

![cover](/absolute/path/to/output/xhs-01-cover.png)

Do this for the most important images, especially the cover and any pages the user asked to inspect.