mcpbeat

Wx Emoji Maker

cafe3310/wx-emoji-maker

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

2k tokens
context cost
the whole folder, loaded on every use
2
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
249
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/cafe3310/public-agent-skills --skill wx-emoji-maker

The instruction itself

1 sections, as written by the author

技能:wx-emoji-maker

概述

此技能可将一个目录中的 PNG 图片批量处理,使其适合用作微信表情包。它通过一个包含背景处理、裁剪、标准化和调整大小的自动化工作流,确保最终生成的表情包拥有一致的外观和尺寸。

关键词: 微信表情, 表情包, 图片处理, PNG, ImageMagick

何时使用此技能

  • 当您有一系列 PNG 图片,并希望将它们快速转换为符合微信表情包标准的图片时。
  • 当源图片背景颜色不一,需要统一处理时。
  • 当您需要自动裁剪图片空白,并添加标准内边距时。

工作流程

要执行此任务,请遵循以下步骤:

  • 准备: 确认你的系统已安装 ImageMagick
  • 执行: 调用 run.sh 脚本,并将包含 PNG 图片的目录路径作为参数。
    /bin/bash <path_to_skill>/scripts/run.sh <图片目录路径>
  • 交互式检查: 脚本在完成前会暂停,提示您检查 mid3-border 目录中的中间成果。这是一个手动微调的好机会。检查完毕后按回车键继续。
  • 完成: 脚本执行完毕后,最终成果将保存在目标目录下的 res 子目录中。

最佳实践

  • 输入: 确保输入目录中只包含您想处理的 PNG 图片。
  • 检查: 在脚本暂停时,务必检查 mid3-border 目录中的图片,确保裁剪和边框效果符合预期。

常见陷阱

  • 依赖缺失: 未安装 ImageMagick 会导致脚本执行失败。
  • 路径错误: 提供的目录路径不正确或不包含 PNG 文件将导致错误。

> 一个典型的例子,可以参考 https://cafe3310.github.io/chocho-miemie-album/posts/chocho-stickers.html 。

How to use it

Copy the folder

Take cafe3310/wx-emoji-maker from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.