Skip to main content

Multi-Platform command line tool written in Python to convert HEIF images

Project description

heif-convert

Multi-Platform command line tool written in Python to convert HEIF images.

📝 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

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heif-convert-1.1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

heif_convert-1.1.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page