| name | convert-heic-to-jpeg |
|---|---|
| description | Convert HEIC or HEIF images to JPEG with `uv run` using inline script dependencies. Use this when new phone photos are added under `pictures/` and need to be converted before indexing or upload. |
| argument-hint | [path] [--quality 90] [--overwrite] |
Use this skill when you need to convert .heic or .heif images into .jpg files for local development workflows.
The script for this skill lives at ./convert_heic_to_jpeg.py and is designed to be run with uv run.
- Converts a single HEIC or HEIF file to JPEG.
- Recursively scans a directory for HEIC or HEIF files.
- Writes JPEG files next to the source images by default.
- Can write output into a separate directory.
- Skips existing JPEG files unless
--overwriteis passed.
Run the script with uv run so the inline PEP 723 dependencies are installed automatically:
uv run .agents/skills/convert-heic-to-jpeg/convert_heic_to_jpeg.py picturesConvert one file:
uv run .agents/skills/convert-heic-to-jpeg/convert_heic_to_jpeg.py pictures/clothes/IMG_3233.HEICConvert into a separate output directory:
uv run .agents/skills/convert-heic-to-jpeg/convert_heic_to_jpeg.py pictures --output-dir converted-picturesOverwrite existing JPEG files:
uv run .agents/skills/convert-heic-to-jpeg/convert_heic_to_jpeg.py pictures --overwrite- Point the script at
pictures/or a subdirectory such aspictures/clothes/. - Review the summary output to confirm how many files were converted or skipped.
- Re-run with
--overwriteonly if you intentionally want to replace existing JPEG outputs.
- This skill is stored in
.agents/skills, which VS Code documents as a default project skill location. - The script depends on Pillow and
pillow-heif, declared inline in the script so they can be resolved byuv run.