> 文字精准 > 插画还原
> 当两者冲突时,优先保文字。AI 图像生成对中文精准度有限,用 HTML 控制文字是唯一可靠解法。
用户说这些词时激活:
分析原图,提取:
有原图参考时:
input_files: 原图路径prompt: 明确要求"保留原图排版风格,重生成插画,文字区域留空"无原图时(纯文字海报):
prompt: 详细描述排版结构(不用"参考图生成")使用预设模板,填入精准文字内容,输出 HTML 文件。
发布 HTML:
deploy(project_name="poster-xxx", dist_dir=临时目录)
导出 PNG(如需要):
当前环境 Playwright 不可用,可选方案:
<!-- 参考:/workspace/skills/poster-precise-text/references/bone_health_template.html -->
关键替换字段:
| 字段 | 说明 |
|---|---|
| ------ | ------ |
{{title}} | 主标题 |
{{subtitle}} | 副标题 |
{{section1_title}} | 板块1标题 |
{{section1_cards}} | 板块1内容(卡片JSON) |
{{section2_items}} | 板块2内容(列表JSON) |
{{section3_items}} | 板块3内容 |
{{footer_left}} | 左下内容 |
{{footer_right}} | 右下内容 |
{{bg_color}} | 主色调 |
{{accent_color}} | 强调色 |
医疗健康类(推荐):
#00857C(青绿色)#F7F7F7#F5A623(橙色)#1A1A1A政务宣传类:
#C41E3A(中国红)#FFD700(金色)教育科普类:
#2563EB(蓝色)#10B981(绿色)Recreate this poster layout. Keep the exact structure, illustrations, icons, color scheme.
Only change text to: [精准文字内容]
Keep all other elements identical.
[见 references/poster_prompt_guide.md]
Q: 文字变形严重怎么办?
→ 跳过参考图,用纯 prompt 生成海报,HTML 文字做精准层
Q: 图像生成报错了?
→ 检查 input_files 数量是否超限(max 10)
→ 尝试去掉 input_files,只用纯 prompt
Q: HTML 发布后需要 PNG 格式?
→ 用户在浏览器打开 → Ctrl+P 打印为 PDF
→ 或截图工具处理
共 1 个版本