Skip to content
Productivity
Skill

/wx-emoji-maker

处理 PNG 图片目录,将其转换为适合微信使用的表情包

From plugin
public-agent-skills
25946 skills4 agents

Claude Code

$ npx -y skills add cafe3310/public-agent-skills --skill wx-emoji-maker --agent claude-code

SKILL.md

wx-emoji-maker.SKILL.md
name: wx-emoji-maker
description: 处理 PNG 图片目录,将其转换为适合微信使用的表情包
license: Apache-2.0
author: github/cafe3310
depends_on_skill: []
depends_on_binary:
  - imagemagick
  - bash
  - python3

技能:wx-emoji-maker

概述

此技能可将一个目录中的 PNG 图片批量处理,使其适合用作微信表情包。此外,它还包含一个**用于亚克力冰箱贴等实物周边的子流程**,支持为表情包/贴纸图片批量添加自定义版权水印并进行 3% 的小圆角正方形裁剪(圆角外透明)。

**关键词**: 微信表情, 表情包, 图片处理, PNG, ImageMagick, 水印, 圆角裁切, 亚克力冰箱贴

何时使用此技能

  • **主流程(微信表情制作)**:
  • 当您有一系列 PNG 图片,并希望将它们快速转换为 240x240 大小、符合微信表情包标准的图片时。
  • 当源图片背景颜色不一,需要统一处理并统一背景颜色时。
  • **子流程(冰箱贴水印与圆角处理)**:
  • 当您准备用图片制作亚克力冰箱贴,需要批量加上自定义版权标识水印(如 `© 2026 cafe3310`)时。
  • 需要将实心正方形图片裁切为小圆角(如 3% 的圆角正方形,圆角外侧透明以便于后续制作异形冰箱贴实物)时。

工作流程

主流程:微信表情制作

1. **准备**: 确认系统已安装 `ImageMagick`。 2. **执行**: 调用 `run.sh` 脚本,并传入包含 PNG 图片的目录路径:

    /bin/bash <path_to_skill>/scripts/run.sh <图片目录路径>

3. **交互式检查**: 脚本在完成前会暂停,您可以检查 `mid3-border` 目录下的中间成果,确认无误后按回车键继续。 4. **完成**: 最终表情包成品将保存在目标目录的 `res` 子目录中。

子流程:冰箱贴水印与圆角处理

1. **准备**: 确认系统已安装 `python3` 及其 `Pillow` 库:

    pip install pillow

2. **执行**: 调用 `add_watermark.py` 脚本:

    python3 <path_to_skill>/scripts/add_watermark.py --thumb

3. **参数配置**: 脚本内置了针对冰箱贴最佳打印效果的默认参数:

  • **字体**: `M_PLUS_Rounded_1c Medium`(默认,圆体字)
  • **水印**: `© 2026 cafe3310`
  • **尺寸**: 108px,透明度 60%,右下角对齐(X偏距 150px,Y偏距 100px,字符间距 0.85 紧凑)
  • **裁剪**: 3% 圆角正方形(圆角外透明)
  • 如需调整,可通过命令行参数进行微调。例如:
  • 更改水印内容:`-t "© 2026 cafe3310"`
  • 不进行圆角裁剪:`--round-ratio 0`
  • 调整透明度:`-p 0.40`
  • 更改字体大小:`--size 86`

最佳实践

  • **表情制作**: 确保输入目录只包含你想制作成微信表情的 PNG。在暂停检查阶段务必确认 `mid3-border` 的边界符合预期。
  • **水印圆角**: 如果使用字间距缩紧,该脚本使用 Python Pillow 逐字计算前进量,能保证右下角的水印即使在改变字距后依然精确贴合右边缘 150px 的安全偏距。

常见陷阱

  • **依赖缺失**: 未安装 `ImageMagick` 或未安装 Python `Pillow` 库会导致相应流程执行失败。
  • **百分号转义**: 在命令行使用 Python 脚本的 `--letter-spacing` 帮助信息时,Pillow 会做格式化解析,请在编辑时确保 `%%` 转义。
Read more
@cafe3310
Ships withpublic-agent-skills

个人常用的 Agent Skill(公开部分)。通过合适的上下文工程,可以将 Agent Skill 用在几乎任何地方。

25946 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
259
Star history of cafe3310/public-agent-skills on GitHub, a chart by star-history.com

Other skills on public-agent-skills.

agent-browser

agent-browser

为 Agent 设计的自动化浏览器 CLI 工具,也能操作 Electron 桌面应用。当需要与网站交互(包括页面导航)时使用

aop-product-planner

aop-product-planner

面向切面 (AOP) 的智能产品策划与需求拆解范式。用于从目标叙事、AOP 切面分层、乱序 Idea 收集、功能边界界定到需求依赖拓扑与优先级的全流程产品工程规划。

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills11d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about wx-emoji-maker.

Which coding agents can use wx-emoji-maker?
wx-emoji-maker installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.