A precise and lightweight solution designed to convert HEIC/HEIF images to JPEG format.
- Lightweight:The code is easy to understand, and does not rely on highly encapsulated libraries.
- Color Accuracy:Minimally retains the color accuracy of P3 color gamut HEIF images.
- Python Environment (Tested on Python 3.12.5 x64)
- If you do not have a Python environment, you can download the packaged exe version from release.
- run
pip install -r requirements.txt
to install the required packages. - Run the script with
python heif2jpg.py [input_path]
- Use
-h
option to see full help.
- Use
heif2jpg.exe [-h] [-o OUTPUT] [--p3-to-srgb] [--no-icc] [--no-exif] [-q QUALITY] heif_path
to convert files. - Use
-h
option to see full help.
Note
Do not run the program directly. Instead, execute the script via the command line.
Warning
The packaged exe version may trigger false virus alerts. Please allow it to run. If you are concerned, you can run it offline or download the source code for inspection.
The code is simple and easy to understand, and you can easily modify it to a batch conversion tool or make other changes.
MIT License.
For more information:
If you like this project, please give it a star! Your support is the greatest motivation for me to continue developing!
If you have any issues, please submit an issue!
If you have any good modification suggestions, please submit a Pull Request!
Thank you for your support! ❤If possible, please leave your personal homepage in the "sponsor notes". Thank you for your support!