This project allows you to freely convert JPG images to HEIF format. HEIF (High Efficiency Image Format) is a more efficient image format in terms of storage and quality compared to traditional formats like JPG.
HEIF, as the name suggests, is a high-efficiency image format. Not only does it offer smaller file sizes compared to JPG, but it also provides better image quality. This makes it an excellent choice for anyone looking to save storage space without compromising on image quality.
To get started with this project, follow the steps below:
-
Clone the repository:
git clone https://github.com/Devasy23/JPG2HEIF
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On Unix or MacOS:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
To convert a JPG image to HEIF using the command line interface, use the following command:
jpg2heif file file.jpg file.heic
You can also convert a folder of images or a zip file:
jpg2heif folder input_folder output_folder
jpg2heif zip input.zip output.zip
To benchmark the conversion algorithm:
jpg2heif file file.jpg file.heic --benchmark
To compare SSIM index of other converted images with the original:
jpg2heif file original.jpg --compare converted1.heic converted2.heic
To convert a JPG image to HEIF using the Streamlit app, use the following command:
streamlit run app.py
or using the link