heif-convert
Multi-Platform command line tool written in Python to convert HEIF images.
If you find heif-convert helpful, please consider giving it a star ⭐️. Your support helps me gauge its usage and motivates further development.
📝 Table of Contents
📕 About
heif-convert is a multi-platform tool written in Python to convert High Efficiency Image File (HEIF) images to jpg, png, webp, gif, tiff, bmp, or ico.
heif-convert is designed to make HEIF batch conversion easy.
⚙️ Installation
Python repository
The easiest way to get heif-convert is through the pypi.org repository. Install it by running the following command:
pip install heif-convert
Building from source
To install heif-convert from source, clone this repository and run pip install . as follows:
git clone https://github.com/NeverMendel/heif-convert.git
cd heif-convert
pip install .
Docker image
To pull heif-convert Docker image, run:
docker pull nevermendel/heif-convert
Usage
heif-convert can be used from the command line by invoking the heif-convert command.
Convert an HEIF image to a JPG image:
heif-convert input.heic -f jpg
Convert all HEIF images in the current folder to JPG images:
heif-convert *.heic -f jpg
Docker image
Convert an HEIF image to PNG using the Docker image:
docker run -v "$(pwd)":/usr/app/out --rm nevermendel/heif-convert input.heic -f jpg
Arguments
usage: heif-convert [-h] [-o OUTPUT] [-p PATH]
[-f {jpg,png,webp,gif,tiff,bmp,ico}] [-q QUALITY] [-n] [-v]
[-vv] [-V]
input [input ...]
Command line tool to convert HEIF images
positional arguments:
input HEIF input file(s)
options:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
output file name
defaults to original file name (default: '{name}')
-p PATH, --path PATH output file path
defaults to original file path (default: '{path}')
-f {jpg,png,webp,gif,tiff,bmp,ico}, --format {jpg,png,webp,gif,tiff,bmp,ico}
output format (default: jpg)
-q QUALITY, --quality QUALITY
output quality, integer [0, 100] (default: 90)
-n, --no-exif Do not include EXIF metadata in the converted image
-v, --verbose enable verbose logging
-vv, --extra-verbose enable extra verbose logging
-V, --version show program's version number and exit
Libraries
heif-convert uses the following libraries:
Supported operating systems
heif-convert works on Linux, Mac OS and Windows systems. For further information refer to the pillow_heif repository.
License
Metadata
Release files for heif-convert 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| heif_convert-1.2.1.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| heif_convert-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / heif_convert-1.2.1.tar.gz
| Download URL | heif_convert-1.2.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33bab4d5aa6729867f5a7d27e49b9819b28827359ef7a80a3246efde4ab67e2b
|
|
BLAKE2b-256 checksum How to use checksums |
9a4f1898a033446d678e17dc72569bc555aa963ff47692fa0d33aaf6206bc472
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / heif_convert-1.2.1-py3-none-any.whl
| Download URL | heif_convert-1.2.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
736398507263b041180962d9d2c5d30c95c52bb16b448286f2681897ab3c15b5
|
|
BLAKE2b-256 checksum How to use checksums |
96e75dd9ae1774bf8349a4762a7887db78134e09eed64e1f047d0084e1d329de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|