π« The Pain Point
You copy iphone photos to a Windows PC. They are all .HEIC. Windows Photo Viewer says βCannot open fileβ.
Online converters are slow, riddled with ads, and risky for private photos.
π Agentic Solution
Local Converter: Free, private, and unlimited.
Key Features:
- Offline: 100% processing on your CPU.
- Optimized: Preserves quality.
βοΈ Phase 1: Commander (Quick Fix)
For converting a folder now.
Prompt:
βConvert all .HEIC files in this directory to .JPG using
pillow_heif. Keep the same filename.β
Result: A script that solves the compatibility issue.
ποΈ Phase 2: Architect (Permanent Tool)
For Studios/Apple Users.
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create a "Batch HEIC to JPG Converter".
**Requirements:**
1. **Tech Stack:** `pillow-heif` (Crucial for HEIC support).
2. **GUI:**
* Select Source Folder.
* "Convert All" button.
* Progress bar.
3. **Logic:**
* Register HEIC opener with Pillow.
* Iterate `.heic` files.
* Save as `.jpg` (Quality 95).
* Keep Exif data if possible.
4. **Deliverables:** `heic_converter.py`, `run.bat` (Windows), `run.sh` (Mac).
π§ Prompt Decoding
pillow-heif: Standard PIL does not support HEIC. You must explicitly tell the AI to usepillow-heifor it will generate code that crashes.
π οΈ Instructions
- Copy Prompt -> Paste -> Run.
- Select iPhone Photos -> Convert.