name: content-news-thai description: Generate news-style social media images (1080x1350) with Thai text overlay and matching captions. Use when asked to create content, make a news post image, generate a headline image with Thai text, or produce a full content set (image + caption) for Facebook/Instagram. Handles Thai fonts (Kanit, Prompt, Sarabun) rendered pixel-perfect via canvas. Triggers on "ทำ content", "ทำรูปข่าว", "สร้างรูปโพส", "make content", "news image", "headline image".
Generate news-style post images with Thai text overlay + captions for social media.
Run the setup script to install dependencies (canvas, Thai fonts):
bash <SKILL_DIR>/scripts/setup.sh
On Docker/VPS this installs: libcairo2, libpango, Thai fonts (Kanit, Prompt, Sarabun). On macOS: uses Homebrew for cairo/pango.
cd <SKILL_DIR>/scripts && node gen-news.mjs '<json>'
| Param | Required | Description |
|---|---|---|
| headline | ✅ | Main headline (Thai/English, auto-wraps) |
| sub | Sub-headline text | |
| badge | Badge label (default: "AI NEWS") | |
| badgeColor | Badge color (default: "#CC0000") | |
| bgImage | Background image path or URL | |
| bgColor | Fallback bg gradient color (default: "#0a0a1a") | |
| source | Source attribution at bottom | |
| output | ✅ | Output file path (.jpg) |
| brandName | Watermark text (bottom-right) | |
| accentColor | Bottom bar color (default: "#CC0000") |
cd <SKILL_DIR>/scripts && node gen-news.mjs '{"headline":"AI กำลังเปลี่ยนวงการค้าปลีก","sub":"ยอดขายพุ่ง 40% ใน 6 เดือน","badge":"BREAKING NEWS","source":"Reuters • มี.ค. 2026","brandName":"MY BRAND","output":"/tmp/news_post.jpg"}'
Output: JSON {"status":"done","output":"/tmp/news_post.jpg","size":"1080x1350","type":"image"}
Two approaches: 1. With bgImage — provide a path/URL to a photo. The script covers it with dark gradient for text readability. 2. Without bgImage — generates a dark gradient background with subtle grid pattern. Good for text-focused posts.
这个技能的最新版本可以在7w4.net小葱技能站找到。
For best results, generate a background image first (use the AI model's image generation), save it, then pass the path as bgImage.
When asked to create a complete content set:
这是一个用于制作泰国风格新闻图片的 Skill,整体质量不错。文档写得很详细,小白也能看懂怎么用;支持自定义标题、角标、背景图片和品牌水印,输出的图片尺寸符合社交媒体标准。安装脚本能自动处理字体和依赖,比较省心。主要问题是初始包不包含字体文件,需要额外下载;另外对一些边界情况的错误提示还不够友好。总体来说是个好用的工具,适合需要制作泰语社交媒体内容的用户。