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
- Ensure dependencies exist:
python3 -m pip install Pillow pillow-avif-plugin
- Convert one folder:
python3 scripts/avif2jpg.py /path/to/folder
- Convert multiple files:
python3 scripts/avif2jpg.py /path/a.avif /path/b.avif
- 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-
.aviffiles and print warnings.
Command Options
--quality <1-100>: Set JPEG quality (default92).--overwrite: Overwrite existing output file.--recursive: Recursively scan folders.
Execution Checklist
- Resolve and validate each input path first.
- Install dependencies if
Pillowor AVIF plugin is missing. - Run
scripts/avif2jpg.pywith user options. - Report converted files, skipped files, and failures.