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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/guoway/openclaw-avif2jpgWhat 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
--qualityflag 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
--overwriteflag 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
--recursiveflag, 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-guoway-openclaw-avif2jpg": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
jenkins
Interact with Jenkins CI/CD server via REST API. Use when you need to trigger builds, check build status, view console output, manage jobs, or monitor Jenkins nodes and queue. Supports deployment to different Jenkins instances via environment variables.
redmine-issue
Read Redmine issues from any Redmine server via REST API with configurable URL and credentials. Use when you need to fetch a single issue, list/filter issues, or inspect issue fields for change planning; supports deployment to different Redmine instances via environment variables.