steelan9199/wechat-publisher

webp-to-jpg

将WebP格式的图片转换为JPG格式。当用户需要将WebP图片转换为JPG格式时使用此技能,因为某些平台不支持WebP格式。

First seen Feb 15, 2026

Installation

$ npx skills add steelan9199/wechat-publisher --skill webp-to-jpg

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from steelan9199/wechat-publisher · top by installs.

npx skills add steelan9199/wechat-publisher

Browse all from steelan9199/wechat-publisher

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 10
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,663 B
  • docs SUMMARY.md 169 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 68 installs

SKILL.md

WebP到JPG转换技能

功能概述

此技能将帮助您将WebP格式的图片转换为JPG格式,以便在不支持WebP格式的平台上使用。

使用场景

  • 在微信公众号等不支持WebP格式的平台上使用图片
  • 将WebP图片转换为更通用的JPG格式
  • 准备适合特定平台的图片格式

转换步骤

  1. 检查Pillow库:确认系统已安装Pillow库用于图片处理

``bash python -c "from PIL import Image; print('Pillow is available')" ``

  1. 安装Pillow库(如果没有安装):

``bash pip install Pillow ``

  1. 执行格式转换

```python from PIL import Image

# 打开WebP图片 img = Image.open('<webpimagepath>')

# 转换为RGB模式(因为JPG不支持透明度) rgb_img = img.convert('RGB')

# 保存为JPG格式 rgbimg.save('<jpgimage_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('图片转换成功')"

<webpimagepath> 替换为您的WebP图片路径,将 <jpgimagepath> 替换为您想要保存的JPG图片路径。

注意事项

  • JPG格式不支持透明度,所以WebP的透明部分会被转换为白色背景
  • 转换后的图片质量可能会略有变化
  • 确保目标路径有写入权限