skills/webp-to-jpg/SKILL.md
将WebP格式的图片转换为JPG格式。当用户需要将WebP图片转换为JPG格式时使用此技能,因为某些平台不支持WebP格式。
npx skillsauth add steelan9199/wechat-publisher-skill webp-to-jpgInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
此技能将帮助您将WebP格式的图片转换为JPG格式,以便在不支持WebP格式的平台上使用。
检查Pillow库:确认系统已安装Pillow库用于图片处理
python -c "from PIL import Image; print('Pillow is available')"
安装Pillow库(如果没有安装):
pip install Pillow
执行格式转换:
from PIL import Image
# 打开WebP图片
img = Image.open('<webp_image_path>')
# 转换为RGB模式(因为JPG不支持透明度)
rgb_img = img.convert('RGB')
# 保存为JPG格式
rgb_img.save('<jpg_image_path>', 'JPEG')
直接使用Python命令行进行转换:
python -c "from PIL import Image; img = Image.open('<webp_image_path>'); rgb_img = img.convert('RGB'); rgb_img.save('<jpg_image_path>', 'JPEG'); print('图片转换成功')"
将 <webp_image_path> 替换为您的WebP图片路径,将 <jpg_image_path> 替换为您想要保存的JPG图片路径。
tools
教用户在 Windows 11 上通过批处理脚本 (.bat) 启动或批量启动指定程序,以及关闭程序。当用户需要启动程序、批量启动多个程序、制作一键启停脚本时触发此技能。
development
对混乱、耦合严重的JavaScript项目进行架构诊断、模块化拆分与代码重构。当用户要求'重构项目'、'优化代码结构'、'梳理架构'、'解决代码耦合'或项目存在职责不清、互相依赖的面条代码时触发此skill。
tools
解析纯色平涂插画图片,输出 SAM3 提取提示词与儿童单层绘画顺序的 Markdown 表格。当用户消息中包含「分割图片」或「绘画步骤」关键词时触发此技能。
tools
备份 JS 项目的入口文件及其所有依赖文件到 project-backup 文件夹。自动发现入口文件、递归检测依赖、智能编号。适用于任何 JS/CommonJS 项目。当用户要求'备份代码'、'保存当前版本'、'创建快照'或修改代码前需要保留原版本时触发此 skill。