π« The Pain Point
iPhones save photos in HEIC format to save space, but many websites and apps donβt support it. You have 500 vacation photos that wonβt upload anywhere.
π Agentic Solution
A Batch Converter that transforms HEIC to universal JPG format.
Key Features:
- Batch Processing: Convert entire folders at once.
- Quality Control: Adjustable JPG compression.
- Metadata Preserve: Keeps EXIF data (date, location).
βοΈ Phase 1: Commander (Quick Fix)
For quick conversion.
Prompt:
βI have a folder
iphone_photoswith HEIC files. Write a Python script using pillow-heif and Pillow to:
- Convert: All .heic/.HEIC files to JPG.
- Quality: JPG quality = 90.
- Metadata: Preserve EXIF data if possible.
- Output: Save to
converted/folder.Print progress (e.g., βConverted 1/500: IMG_0001.HEICβ). Handle corrupt files gracefully.β
Result: Universal photos compatible with any platform.
ποΈ Phase 2: Architect (Permanent Tool)
For Photographers.
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create a "HEIC to JPG Converter".
**Requirements:**
1. **GUI:**
* Select input folder.
* Quality slider (1-100).
* Option: Delete originals after conversion.
* Progress bar.
2. **Logic:**
* Use pillow-heif for HEIC reading.
* Transfer EXIF metadata.
* Handle read errors.
3. **Deliverables:**
* `heic_converter.py`
* `run.bat`, `run.sh`
* `requirements.txt`
π§ Prompt Decoding
- pillow-heif: A Pillow plugin that adds HEIC support. Must be installed separately.
π οΈ Instructions
- Install:
pip install pillow-heif - Copy Prompt β Run.