This project provides a simple Python script to upload, convert, and display images in HEIF (High-Efficiency Image File) format, saving them as JPEGs. This script is designed to work in Google Colab and leverages pillow-heif
and pyheif
libraries for handling HEIF images.
- Upload HEIF images directly in Google Colab.
- Convert HEIF images to JPEG format.
- Display the uploaded HEIF image.
- Save the converted image as a JPEG file.
Make sure you have the following libraries installed:
!pip install pyheif
!pip install pillow-heif
- Clone the repository or copy the code into your Colab notebook.
- Upload a HEIF image when prompted.
- The script will display the uploaded image and save it as
converted_image.jpg
.
This project is licensed under the MIT License.