ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified media Safety 4/5

openclaw-avif2jpg

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.

Why use this skill?

Easily batch convert AVIF images to JPEG format with OpenClaw. High-quality output, recursive directory support, and simple CLI workflow for all your media needs.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/guoway/openclaw-avif2jpg
Or

What This Skill Does

The openclaw-avif2jpg skill is a powerful command-line utility designed to bridge the gap between modern image formats and legacy compatibility requirements. AVIF (AV1 Image File Format) offers superior compression, but is not supported in all applications or legacy environments. This skill provides a streamlined, Python-based workflow to convert single AVIF files, entire directories, or mixed collections of assets into high-quality JPEG images. It intelligently manages file paths, ensuring that converted images are placed adjacent to their source files or into dedicated sibling directories, maintaining your file system structure.

Installation

To integrate this skill into your workflow, you must have Python 3 installed. Start by installing the skill via the OpenClaw hub: clawhub install openclaw/skills/skills/guoway/openclaw-avif2jpg. Once installed, you must ensure the required image processing libraries are available. Run the following command in your terminal: python3 -m pip install Pillow pillow-avif-plugin. These libraries provide the underlying decoding logic for AVIF files and the encoding logic for JPEG output.

Use Cases

  • Web Development Migration: Preparing asset libraries by converting modern high-efficiency AVIF images to JPEG for legacy browser support.
  • Batch Archiving: Rapidly converting thousands of AVIF screenshots or downloads into a standardized JPEG format for better compatibility with standard photo viewers or editing software.
  • Storage Optimization: Automating the conversion process within automated server tasks or local backup routines.
  • Mixed Media Processing: Handling complex folders where AVIF files are intermingled with other image types, as the script automatically skips non-AVIF files, preventing errors.

Example Prompts

  • "Convert all the AVIF images in my /Users/me/Downloads folder to JPG files."
  • "Take these three photos: /images/vacation/sunset.avif, /images/vacation/beach.avif, and /images/vacation/pool.avif and convert them to JPEGs at 85 quality."
  • "Recursively scan my /projects/assets folder and convert every .avif file found into a .jpg, overwriting any previous attempts."

Tips & Limitations

  • Quality Control: Use the --quality flag to balance file size against visual fidelity. The default is 92, which is generally considered 'high-quality,' but can be lowered for web-optimized assets.
  • Safety: Always use the --overwrite flag with caution. By default, the script will not destroy existing data. If you are unsure, back up your files before running batch operations.
  • Recursion: When using the --recursive flag, be aware of the folder depth. Extremely nested directory trees may take longer to process.
  • Compatibility: Ensure you have sufficient permissions for the target directories; the script writes files next to the source, so write-access to the parent folders is required.

Metadata

Author@guoway
Stars2387
Views0
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-guoway-openclaw-avif2jpg": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#image-processing#conversion#avif#automation#batch-processing
Safety Score: 4/5

Flags: file-read, file-write, code-execution