Index of every page on this site: llms.txt
All skills
steelan9199 avatar

/webp-to-jpg

@9e01957
Run it yourself

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

Use this Skill: https://skilld.dev/gh/steelan9199/wechat-publisher/webp-to-jpg

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈432 tokens on demand. Your agent reads this file only when SKILL.md points to it.

WebP到JPG转换工具使用说明

工具简介

这是一个用于将WebP格式图片转换为JPG格式的Python工具,位于 scripts/convert-webp-to-jpg.py。

依赖安装

在使用脚本之前,请确保已安装Pillow库:

pip install Pillow

使用方法

1. 转换单个文件

python scripts/convert-webp-to-jpg.py path/to/image.webp

这将在同一目录中生成同名的JPG文件。

2. 指定输出路径

python scripts/convert-webp-to-jpg.py path/to/input.webp -o path/to/output.jpg

3. 设置JPG质量

python scripts/convert-webp-to-jpg.py path/to/image.webp -q 90

质量值范围为1-100,默认为95。

4. 批量转换目录中的所有WebP文件

python scripts/convert-webp-to-jpg.py path/to/directory -b

或者:

python scripts/convert-webp-to-jpg.py path/to/directory --batch

命令行选项

  • input: WebP文件路径或包含WebP文件的目录
  • -o, --output: 输出JPG文件路径(仅适用于单个文件转换)
  • -q, --quality: JPG输出质量 (1-100),默认为95
  • -b, --batch: 批量转换模式(处理整个目录)

示例

转换单个文件

python scripts/convert-webp-to-jpg.py "D:/temp/即梦AI_-_一站式AI创作平台/DM_20260215210813_001.webp"

批量转换

python scripts/convert-webp-to-jpg.py "D:/temp/即梦AI_-_一站式AI创作平台/" -b

注意事项

  • JPG格式不支持透明度,所以WebP的透明部分会被转换为白色背景
  • 转换后的图片质量可以通过 -q 参数控制
  • 确保目标路径有写入权限
  • 批量转换时,脚本会处理指定目录下的所有 .webp 文件

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert8mo4 checks · Risk HIGH
  • Gen Agent Trust Hub9mo

    The skill provides a utility for converting images but introduces a high-risk security flaw by instructing the AI agent to perform unsanitized string interpolation into executable Python commands. A user could exploit this by providing a malicious filename that executes arbitrary code on the host system.

  • Socket8mo

    No alerts

  • Snyk9mo

    Risk: LOW · No issues

  • Runlayer9mo

    4/4 files flagged

Signed by skilld at 9e01957. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 9 months ago

README badge

README badge for steelan9199/wechat-publisher/webp-to-jpg