xiaohongshu-image-generator
根据小红书文章内容自动生成配图。使用PIL将文章标题、副标题、内容生成在图片上,适合小红书笔记配图。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/binsonhao/redbook-image-generatorWhat This Skill Does
The xiaohongshu-image-generator is a specialized utility designed for social media content creators who need to produce high-quality, aesthetically pleasing cover images for Xiaohongshu (Red) posts. By leveraging the Python Imaging Library (PIL), this tool automates the process of overlaying stylized text—including titles, subtitles, and body text—onto images. It removes the friction of manual image editing, allowing users to generate consistent, brand-aligned visual assets directly from their textual content, significantly streamlining the social media production workflow.
Installation
To install this skill within your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/binsonhao/redbook-image-generator
Ensure you have the Python Imaging Library (Pillow) installed in your environment, as it serves as the core engine for the image processing capabilities of this skill.
Use Cases
This skill is perfect for creators maintaining active social media profiles. It is particularly useful for:
- Batch generating covers for a series of educational or lifestyle posts.
- Quickly creating "before and after" or "listicle" style thumbnails that require consistent text placement.
- Maintaining a uniform aesthetic across a portfolio of notes without needing professional graphic design software.
- Automating the creation of "daily check-in" or "mood board" style images for consistent engagement.
Example Prompts
- "Generate a cover for my Xiaohongshu post titled 'My Morning Routine', with the subtitle 'Productivity Tips' and content 'Wake up early\nDeep work session\nHealthy breakfast'."
- "Create an image for my new recipe post. Title: 'Healthy Smoothie', Subtitle: 'Easy to make', Body: 'Fresh ingredients\n5 minutes total\nDelicious results'."
- "Make a cover for my travel diary. Title: 'Weekend Trip', Subtitle: 'Hidden Gem', Body: 'Beautiful scenery\nGreat weather\nHighly recommend'."
Tips & Limitations
- Text Formatting: Since the script uses newlines (\n) for line breaks, ensure your content is structured clearly before passing it to the generator.
- Image Assets: Ensure the directory where the script is executed has sufficient write permissions, as the tool outputs a file named 'xhs_cover.jpg'.
- Customization: While the current version automates layout, experiment with different text lengths to ensure the text overlays do not overlap with image edges. For advanced branding, you may wish to edit the source script to customize font sizes or background color schemes to better match your unique style.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-binsonhao-redbook-image-generator": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write