Wx Emoji Maker
Documentswx-emoji-makerWx Emoji Maker is an Agent Skill for documents published in the cafe3310/public-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
处理 PNG 图片目录,将其转换为适合微信使用的表情包
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/cafe3310/public-agent-skills/blob/HEAD/skills/wx-emoji-maker/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/wx-emoji-maker, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
技能: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 。