πŸ–ΌοΈ

HEIC to JPG Converter

Convert iPhone HEIC photos to standard JPG format with batch processing support.

Image ⭐ Beginner ⏱️ 2 minutes

😫 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_photos with HEIC files. Write a Python script using pillow-heif and Pillow to:

  1. Convert: All .heic/.HEIC files to JPG.
  2. Quality: JPG quality = 90.
  3. Metadata: Preserve EXIF data if possible.
  4. 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 GUI Developer (PyQt6 Specialist)
**Task:** Create "HEIC Converter Pro" Desktop App

**Objective:** A reliable batch tool to convert Apple HEIC photos to universal JPG format effortlessly.

**Tech Stack:**
* Language: Python 3.10+
* GUI Library: PyQt6 (Cross-platform)
* Image Processing: pillow-heif, Pillow
* Packaging: PyInstaller

**Functional Requirements:**
1.  **UI Layout (PyQt6):**
    *   **Folder:** Input Folder Selection.
    *   **Settings:** Quality Slider (1-100), Toggle for "Delete Original Files".
    *   **Status:** "Convert" Button and Progress Bar with active file name display.

2.  **Core Logic:**
    *   Register `pillow_heif` opener.
    *   Iterate and convert, preserving EXIF metadata.
    *   **Threading:** Critical to keep UI responsive processing 500+ files.

3.  **Deliverables:**
    *   `main.py`: Complete source code.
    *   `requirements.txt`: Dependencies.
    *   **Build Instructions:**
        *   Windows: `pyinstaller --onefile --noconsole main.py`
        *   macOS: `pyinstaller --windowed --noconsole main.py`

🧠 Prompt Decoding

  • pillow-heif: A Pillow plugin that adds HEIC support. Must be installed separately.

πŸ› οΈ Instructions

  1. Install: pip install pillow-heif
  2. Copy Prompt β†’ Run.

Related Workflows

Explore other categories

πŸ“¬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

πŸ“– Free eBook Guide πŸ“¦ 7 Ready-to-use Scripts πŸ”” Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.