Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.42.0
metadata
title: Heic
emoji: π
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.39.0
app_file: app.py
pinned: false
short_description: Heic converter. Lightweight, runs in Gradio.
license: mit
HEIC to PNG Converter
A simple Gradio-based web application for converting HEIC/HEIF images to lossless PNG format.
Features
- Convert single or multiple HEIC/HEIF images to PNG
- Lossless conversion to PNG format
- Simple and intuitive web interface
- Supports batch processing
- Cross-platform compatibility
Prerequisites
- Python 3.7 or higher
- pip (Python package installer)
Installation
- Clone this repository or download the files
- Install the required dependencies:
pip install -r requirements.txt
Usage
- Run the application:
python app.py
- Open your web browser and navigate to the URL shown in the terminal (usually http://localhost:7860)
- Click "Upload" to select one or more HEIC/HEIF files
- Wait for the conversion to complete
- Download the converted PNG files
How It Works
The application uses the pillow-heif
library to handle HEIC/HEIF files and converts them to PNG format using the Python Imaging Library (PIL). The conversion is done with lossless compression to ensure the highest possible image quality.
License
This project is open source and available under the MIT License.