Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

heic2jpg

This is an image conversion tool built on top of libheif to convert HEIC/HEIF files to JPG.

NOTE:

  • This repository is being archived.
  • The tool is available as a part of the Unified CompressMedia tool.

Compatibility

The tool has been written for Ubuntu and tested on Python v3.5 and above but may be compatible with other versions of python too.

Dependencies

pip install heif-convert

Usage

The tool can be run as a Python script, e.g.:

python3 heic2jpg.py -d <data_dir> -o <out_dir> -m 1000000 -rec -v -resize 50% -quality 50%

It supports all arguments for the imagemagick convert tool, and additionally the following arguments:

-d, --data: Input file/directory
-o, --out: Output file/directory. Default: Same as input directory/file with .jpg extension.
-rec, --recursive: Recursively process subdirectories if input is a directory.
-v, --verbose: Increase verbosity.
-q, --quality: Quality of converted file (integer in [0, 100]). Default = 90.

Note that the tool only processes image files with extension .heic or .heif. All other unsupported files are copied over directly. If -rec is not specified, all subdirectories are copied directly to the output directory.

About

Convert HEIC image files to JPG format using libheif

Topics

Resources

Stars

18 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages