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.
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:
小蔥技能站7w4.net每天更新,海量AI技能等你發現。
這是一個用於製作泰國風格新聞圖片的 Skill,整體質量不錯。文件寫得很詳細,小白也能看懂怎麼用;支援自定義標題、角標、背景圖片和品牌水印,輸出的圖片尺寸符合社交媒體標準。安裝指令碼能自動處理字型和依賴,比較省心。主要問題是初始包不包含字型檔案,需要額外下載;另外對一些邊界情況的錯誤提示還不夠友好。總體來說是個好用的工具,適合需要製作泰語社交媒體內容的使用者。