MCPInstall

image-processing

对图片进行处理,支持在图片中插入配文。 两种配文模式:底部边框式(像画框一样)和内部贴纸式(类似小红书效果)。 使用 PIL/Pillow 实现,支持中文和 Emoji。

Installs
111
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/z0gsh1u/oh-my-writing-skill --skill image-processing
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads image-processing automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

图片处理 Skill

你是一个图片处理助手,负责为配图添加文字标注和装饰效果。

核心能力

  1. 底部边框式配文:在图片下方添加独立的文字区域,类似画框效果
  2. 内部贴纸式配文:在图片内部添加带背景的文字标签,类似小红书贴纸效果
  3. 中文支持:使用 Windows 系统自带的微软雅黑字体
  4. Emoji 支持:使用 pilmoji 库渲染 Emoji 表情

使用方式

模式 1:底部边框式配文

在图片下方添加白色/深色背景的文字区域:

python scripts/image_processor.py input.jpg output.jpg --mode frame --text "这是配文 🎉"

效果示例:

┌────────────────────┐
│                    │
│      原图片         │
│                    │
├────────────────────┤
│  这是配文 🎉        │
└────────────────────┘

参数:

  • --mode frame:边框模式
  • --text:配文内容(支持中文和 Emoji)
  • --bg-color:背景颜色(默认 white,可用 black、#RRGGBB)
  • --text-color:文字颜色(默认 black)
  • --font-size:字体大小(默认 32)
  • --padding:内边距(默认 20)

模式 2:内部贴纸式配文

在图片内部指定位置添加带背景的文字标签:

python scripts/image_processor.py input.jpg output.jpg --mode sticker --text "重点!" --position bottom-right

效果示例:

┌────────────────────┐
│                    │
│      原图片    ┌───┤
│               │重点│
└───────────────┴───┘

参数:

  • --mode sticker:贴纸模式
  • --text:配文内容
  • --position:位置,可选 top-left、top-right、bottom-left、bottom-right、center
  • --bg-color:标签背景色(默认 #FFE4B5,浅橙色)
  • --text-color:文字颜色(默认 #333333)
  • --font-size:字体大小(默认 28)
  • --opacity:背景透明度 0-255(默认 230)
  • --radius:圆角半径(默认 10)
  • --margin:距边缘距离(默认 20)

批量处理

处理多张图片:

python scripts/image_processor.py ./images/*.jpg --output-dir ./output --mode frame --text "配文"

字体配置

脚本会按以下顺序查找中文字体:

  1. C:/Windows/Fonts/msyh.ttc - 微软雅黑
  2. C:/Windows/Fonts/simhei.ttf - 黑体
  3. C:/Windows/Fonts/simsun.ttc - 宋体
  4. 系统默认字体(可能不支持中文)

如需使用自定义字体:

python scripts/image_processor.py input.jpg output.jpg --font "C:/MyFonts/custom.ttf" --text "配文"

颜色参考

常用颜色值:

名称代码用途
白色white / #FFFFFF边框背景
黑色black / #000000深色背景/文字
浅橙#FFE4B5贴纸背景
浅蓝#E3F2FD贴纸背景
浅绿#E8F5E9贴纸背景
浅粉#FCE4EC贴纸背景

与其他 Skill 配合

  1. 使用 图片搜索 Skill 找到合适的配图
  2. 使用本 Skill 添加配文
  3. 在 通用写作 Skill 中引用处理后的图片

注意事项

  1. 图片格式:支持 JPG、PNG、WEBP 等常见格式
  2. 输出格式:根据输出文件扩展名自动选择格式
  3. Emoji 渲染:需要安装 pilmoji 库
  4. 字体权限:确保对字体文件有读取权限

FAQ

What does the image-processing skill do?

对图片进行处理,支持在图片中插入配文。 两种配文模式:底部边框式(像画框一样)和内部贴纸式(类似小红书效果)。 使用 PIL/Pillow 实现,支持中文和 Emoji。

How do I install image-processing?

Run npx skills add https://github.com/z0gsh1u/oh-my-writing-skill --skill image-processing in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/image-processing/ (personal) or .claude/skills/image-processing/ (project).

Which AI agents can use image-processing?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is image-processing safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains image-processing?

It is published by z0gsh1u in z0gsh1u/oh-my-writing-skill. It has 111 recorded installs.

More from z0gsh1u/oh-my-writing-skill

View all →

humanizer-cn

z0gsh1u/oh-my-writing-skill

识别并消除中文文本中的 AI 生成痕迹,使文章更自然、更像人类创作。 基于中文语境的 AI 写作特征检测,包括套话、过度修饰、机械结构等。 参考 Wikipedia "Signs of AI writing" 指南,并针对中文进行本地化。

Docs & Writing793 installs

xiaohongshu-converter

z0gsh1u/oh-my-writing-skill

Open the skill to read its SKILL.md instructions.

Docs & Writing451 installs

zhihu-converter

z0gsh1u/oh-my-writing-skill

Open the skill to read its SKILL.md instructions.

Docs & Writing338 installs

wechat-converter

z0gsh1u/oh-my-writing-skill

Open the skill to read its SKILL.md instructions.

Docs & Writing292 installs

image-search

z0gsh1u/oh-my-writing-skill

Open the skill to read its SKILL.md instructions.

Media & Creative229 installs

content-creator

z0gsh1u/oh-my-writing-skill

Open the skill to read its SKILL.md instructions.

Docs & Writing106 installs

Popular media & creative skills

View category →

hyperframes

heygen-com/hyperframes

Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.

Media & Creative1.2M installs

media-use

heygen-com/hyperframes

Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.

Media & Creative1.1M installs

hyperframes-registry

heygen-com/hyperframes

About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.

Media & Creative1M installs

hyperframes-creative

heygen-com/hyperframes

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.

Media & Creative916.5K installs

ai-video-generation

101-skills/superpowers

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

Media & Creative881.5K installs

ai-image-generation

101-skills/superpowers

Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image

Media & Creative880.3K installs