360 Secure SkillHub
360 安全技能中心

OpenClaw AVIF to JPG

该 Skill 提供内置 Python 脚本 scripts/avif2jpg.py,把 AVIF 图片转换为 JPEG。支持传入单个文件夹或多个文件/文件夹路径,可用 --recursive 递归扫描、--quality 设置质量、--overwrite 覆盖输出;文件夹输出到同级 _jpg 目录,文件输出为同名 .jpg,非 AVIF 文件会被跳过并提示。依赖 Pillow 与 pillow…

guoway
guoway
热度 52.80
最近更新 2026-05-11 17:28:19
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 自动化脚本 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-avif2jpg
Metadata
name
openclaw-avif2jpg
description
Convert `.avif` images to `.jpg` using a CLI workflow for one or more input paths. Use when the user asks to convert AVIF files, batch-convert a folder of AVIF images, or convert mixed file/folder path inputs while writing outputs next to the source location.

OpenClaw AVIF to JPG

Overview

Run the bundled Python script to convert AVIF images into JPEG. Accept one folder path or multiple file/folder paths and place output beside source paths.

Quick Start

  1. Ensure dependencies exist:
python3 -m pip install Pillow pillow-avif-plugin
  1. Convert one folder:
python3 scripts/avif2jpg.py /path/to/folder
  1. Convert multiple files:
python3 scripts/avif2jpg.py /path/a.avif /path/b.avif
  1. Recursively convert folder:
python3 scripts/avif2jpg.py /path/to/folder --recursive

Output Rules

  • If input is a folder /data/photos, output goes to sibling folder /data/photos_jpg.
  • If input is a file /data/a.avif, output goes to /data/a.jpg.
  • Skip non-.avif files and print warnings.

Command Options

  • --quality <1-100>: Set JPEG quality (default 92).
  • --overwrite: Overwrite existing output file.
  • --recursive: Recursively scan folders.

Execution Checklist

  1. Resolve and validate each input path first.
  2. Install dependencies if Pillow or AVIF plugin is missing.
  3. Run scripts/avif2jpg.py with user options.
  4. Report converted files, skipped files, and failures.